Veronique Dupierris wrote:
>
> I did a copy  / paste of your examples and, as you said, I'm affraid I " have a
> bigger
> problem." :-(( Each time I click on the link to reach the other page, the session
> is different and the "link Name" ( which should be the result of the encodeUrl
> method)
> is : "examples/jsp/tutorial/session2.jsp" whitout any additionnal Information !!!!!
> I am a starting to despair.
>  Any other idea concerning this problem ????  I saw in some books/tutorial... that
> an other way of doing session tracking was to use a
> hidden input in a form. Does that mean that it is possible to save the session ID,
> to get it back in a new JSP file and then ask the server to use
> this session ! If this is possible it could be a "dirty" work- around...

You say in the original message that you use JSWDK 1.0.1. That's why URL rewriting
doesn't work, since the servlet container in JSWDK 1.0.1 doesn't implement URL
rewriting. If you like to use an easy-to-use, free of charge, all Java server with
Servlet 2.2 (incl. URL rewriting) and JSP 1.1 support, you can try our LiteWebServer,
see http://www.gefionsoftware.com/LiteWebServer for details.

> > > -----Original Message-----
> > > From: A mailing list about Java Server Pages specification
> > > and reference
> > > [mailto:[EMAIL PROTECTED]]On Behalf Of Veronique Dupierris
> > >
> > >     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 !!!!

--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com

===========================================================================
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