hi everybody,
since few days I have a problem with accessing beans in
JSP page. Before I tell my probelm, can anybody tell me .....what is the best way to use a username throughout the session....(I'm developing an Intranet mailing system)?
I'm using beans to store a username and retrieve it throughout the session.... Is this a good practice?
For better understanding, I'll present the scenario.
I have signin.jsp page which allows the user to signin. The form action path in signin.jsp is set to login.jsp. The login.jsp contains code for verifying the user validity and if login is successful, the jsp page is forwarded to inbox.jsp else it is forwarded to invalid.jsp.
inbox.jsp contains two frames, one is dir.jsp and the other is blank.jsp
I want to use the username in blank.jsp(for example).
Now please tell me where should I place my bean code(I mean jsp:useBean and getProperty and setProperty tags) exactly..whether in login.jsp or inbox.jsp, so that I can use that username throughout my session.
Hope u understood the above scenario.
Please reply asap...This is URGENT...!!!
regds,
Sandeep.