24DAY / useBean
2017. 5. 9. 13:33
다음은 같은 기능을 한다.
1-1)
<jsp:useBean id="m" class="kr.or.ksmart.dto.Member"/>
1-2)
<%@page import ="kr.or.ksmart.dto.Member" %>
Member m =new Member();
2-1)
<jsp:setProperty name="m" property="*"/>
2-2)
String m_id = request.getParameter("m_id");
String m_pw = request.getParameter("m_pw");
String m_level = request.getParameter("m_level");
String m_name = request.getParameter("m_name");
String m_email = request.getParameter("m_email");
m.setM_id(m_id);
m.setM_pw(m_pw);
m.setM_level(m_level);
m.setM_name(m_name);
m.setM_email(m_email);