1.
I am using usebean tag of jsp to create a UserBean with scope session.
code snippet from 1.jsp
<jsp:useBean id="user" class="Userbean" scope="session"> </jsp:useBean>
<form name="prodlist" method="post" action="../servlet/ChecklistServlet" >
(or)
<form name="prodlist" method="post" action="./2.jsp" >
---------------------------------------------------------
a.To refer user.getxxx() value in 2.jsp,DO i have to still have same snippet
<jsp:useBean id="user" class="Userbean" scope="session"> </jsp:useBean> in
my 2.jsp.
b.To refer user.getxxx() value in ChecklistServlet, how do i do?
HttpSession session = req.getSession(true);
Userbean user=(Userbean)req.getAttribute("user");
if(user!=null){
String fname= user.getFirstname();
out.println(fname);}
else out.println("userbean not found");
i am getting userbean not found.
Does the above pbm anything to do with JMC control panel
when i refered for session settings under web application
it has default settings.
sahaya
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists