Presentation is loading. Please wait.

Presentation is loading. Please wait.

Internet Computing KUT Youn-Hee Han

Similar presentations


Presentation on theme: "Internet Computing KUT Youn-Hee Han"— Presentation transcript:

1 Internet Computing Laboratory @ KUT Youn-Hee Han
자바빈 활용 Internet Computing KUT Youn-Hee Han

2 자바빈 활용 자바빈 예제 package madvirus.member; import java.sql.Timestamp;
public class MemberInfo { private String id; private String password; private String name; private String address; private Timestamp registerDate; private String ; public String getId() { return id; } public void setId(String val) { this.id = val; public String getPassword() { return password; public void setPassword(String val) { this.password = val; public String getName() { return name; } public void setName(String val) { this.name = val; public String getAddress() { return address; public void setAddress(String val) { this.address = val; public Timestamp getRegisterDate() { return registerDate; public void setRegisterDate(Timestamp val) { this.registerDate = val; public String get () { return ; public void set (String val) { this. = val; Web Programming

3 자바빈 활용 <jsp:useBean> 액션 태그 위 액션 태그를 사용하지 않은 같은 효과의 JSP 코드
<jsp:useBean id="info" class="madvirus.member.MemberInfo" scope="request" /> page import = “madvirus.member.MemberInfo" %> MemberInfo info = (MemberInfo)request.getAttribute(“info”); If (info == null) { info = new MemberInfo(); request.setAttribute(“info”, info); } Web Programming


Download ppt "Internet Computing KUT Youn-Hee Han"

Similar presentations


Ads by Google