Hello,

    I am trying to encode all my links to be able to retrieve my beans
and parameters I have saved in the session object. I tried in 3
differents case :

* for the error Page, the first problem i had, is to set a string
variable in the page action ... <%@ page .... errorPage="<%newURL%>" %>

*So I tried when I call other JSP files, using HREF :
<% String newURL=response.encodeUrl("page.jsp"); %> or encodeURL()
<A HREF="<%=newURL%>?param=value " > or directly using
response.encodeUrl in the HREF tag.

* In a form :
<% String newURL=response.encodeUrl("page.jsp"); %>
<FORM METHOD=POST ACTION=<%=newURL%> >

    In all cases,I display my session ID to verify it and each times,
the session ID is differents !!!! I tried with both Netscape and IE5; I
am using JSWDK-1.0.1.
Could you please tell me where I did something wrong !!!! I also have a
question concerning session, should I use session.getSession in some or
all  my JSP files ?

    Thanks for your help
    veronique

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to