Hi,
Please excuse the newbie questions in advance as Im fairly new to JSP.
1) I am currently passing session beans to other beans in the following way. Is this the best method ?
<jsp:useBean id="loginConn" scope="session" class="com.company.project.LoginBean"/>
<jsp:useBean id="dataBean" scope="session" class="com.company.project.DataBean">
<jsp:setProperty name="databean" property="loginbean" value="<%=loginConn.getLoginbean()%>"/>
</jsp:useBean>
2) How would a servlet fetch session beans that have been instantiated in a JSP page?
(i.e. how would a servlet fetch and use the "dataBean" bean from the above example ?)
Cheers
John (Sudmill)
Please excuse the newbie questions in advance as Im fairly new to JSP.
1) I am currently passing session beans to other beans in the following way. Is this the best method ?
<jsp:useBean id="loginConn" scope="session" class="com.company.project.LoginBean"/>
<jsp:useBean id="dataBean" scope="session" class="com.company.project.DataBean">
<jsp:setProperty name="databean" property="loginbean" value="<%=loginConn.getLoginbean()%>"/>
</jsp:useBean>
2) How would a servlet fetch session beans that have been instantiated in a JSP page?
(i.e. how would a servlet fetch and use the "dataBean" bean from the above example ?)
Cheers
John (Sudmill)