Hey all-

I am trying to ensure that my session object will be maintained correctly if
cookies are not enabled but I am running into some problems.  I am running JRun
2.3.3 with apache web server.

My servlets are using the method

response.sendRedirect(response.encodeRedirectURL(myUrl));

to redirect to a JSP file when they are done processing
but this method does not seem to work (session is lost, no session identifier
placed in URL).
I replaced this with

response.sendRedirect(response.encodeURL(myURL));

This appears to work, but I have seen several sites saying that the
encodeRedirectURL should be the method used for redirecting. Has anyone else run
into this problem?

Also, I noticed that calling encodeURL() on the <FORM ACTION=""> tag only worked
if the form was of METHOD="POST". It appears to replace whatever was added in
the ACTION property (in this case the session identifier) with the contents of
the rest of the form elements. Is there any way to use the encodeURL() on a form
of METHOD="GET"?

Thanks,
   Kevin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to