> I don't know about JRun specifically, but a portable solution should be
> to make sure the URL used in the form's action attribute is "URL
rewritten",
>
> <form action=<%= response.encodeURL("/servlet/foo") %> method="post">
>
> The solution you suggest only works with JRun, since ServletUtil is not
> a standard class, and URL rewriting (according to the 2.2 spec) should
> not use an HTTP parameter for the session ID, it should use a syntax like
>
> /servlet/foo;jsessionid=1234?foo=bar
>
> Note that it's encoded as what is called a "path parameter", not a regular
> HTTP parameter. So even if your suggestion works in the current version of
> JRun, it will likely stop working when JRun is upgraded to support the 2.2
> spec.
Is this correct? It seems that JRun won't correctly parse out that session
id as form parameters for a POST since form parameters don't come in this
way. The suggestion of using encodeUrl() inside the action seems nice, but
it also does not seem to work with JRun. That is, it doesn't see that
parameter unless you use a hidden form parameter to get it to the servlet
engine.
David
===========================================================================
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