스크립틀릿
<%
Member member = new Member();
member.setUserid("apple"); // setter
String userid=member.getUserid();
%>
액션 태그를 사용
// 객체 생성
<jsp:useBean class = “패키지명.클래스명” id=”참조변수”/>
<jsp:useBean class = “com.korea.Member” id=”member”/>
// setter
<jsp:setProperty property="필드명" name="클래스명" value="값"/>
<jsp:setProperty property="userid" name="member" value="apple"/>
// getter
<jsp:getProperty property="필드명" name="클래스명"/>
<jsp:getProperty property="userid" name="member/"/>