Hello All,

I have a question about session tracking. I know that I am employing a crude
technique so please bear with me.

The JSP code is:

<%
String lname ="";
HttpSession ses = request.getSession(true);
if ( ses.isNew() ) {

lname = output of some parse operation;
%>

HTML PAGE

<%}

else{%>

as a part of the HTML I have the following tag:
<input type="hidden" name="lname" value="<%= lname%>">

<%}%>

In the code, if session is NOT new, I want lname to be retrieved from the
value that was obtained when the session was new.

Can someone tell me how I can do it?

Thanks in advance,
Kalyan
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to