I'm still not clear on the difference between encodeURL and
encodeRedirectURL.  What's the difference?

I went to great lengths to ensure that all URLs are encoded on my site, even
for the POST-to URL of a FORM.

But, in JRun 2.3.1 build 145, a servlet that receives it's data from a POST
from a JSP has different behavior for the two calls, and I'd guess it's a
bug in JRun, but it may be I don't really understand what the difference is
between the two calls and why I use one or the other.

I put these two in my servlet:

String toUrl = "/";
System.out.println("DEBUG: encodeUrl okay back to: " +
res.encodeUrl(toUrl));
System.out.println("DEBUG: encodeRedirectUrl okay back to: " +
res.encodeRedirectUrl(toUrl));

and I got this output:

DEBUG: encodeUrl okay back to: /?jrunsessionid=92908411993051031
DEBUG: encodeRedirectUrl okay back to: /

I had been calling the encodeRedirectUrl() method because the servlet then
calls sendRedirect(toUrl). But when I do this, the page is not attached to
the url-rewrite session.

Is this something I don't understand or a bug in JRun?

Thanks,
David

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to