-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Bartek Teodorczyk wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> Passing SessionId via URL rewriting in method doGet is simple and
> working fine. I want to do the same with method doPost. I tried to put
> additional html parameter in section <form> like:
> <input type="hidden" name="JServSessionId" value="%current session%">
> but it seems it is not interpretted.
>
> BarTeo
>
Apache JServ (and I suspect other servlet engines as well) expect the
session ID to be encoded at the end of the URL, even on a POST request.
The simplest way to ensure this is to use the encodeUrl() method as you
create the action attribute of the <form> tag, just like you do for other
hyperlinks.
Craig McClanahan
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]