Kalyan:
Have you tried something like this:
<%
String lname ="";
HttpSession ses = request.getSession(true);
if ( ses.isNew() ) {
lname = output of some parse operation;
ses.setAttribute("lname", lname);
%>
HTML PAGE
<%}
else{%>
lname = ses.getAttribute("lname");
<input type="hidden" name="lname" value="<%= lname%>">
<%}%>
..Just a thought: I haven't tested this or anything.. :-)
Regards,
Geeta
kal inuganti wrote:
> 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
___________________________________________________________________________
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