When the form is submitted I do NOT get the correct session id. That is the
problem.
I'm using JRun 2.3.3 build 153
And yes, I am aware of parsing the multipart post data myself.
-----Original Message-----
From: Nic Ferrier [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 5:11 PM
To: [EMAIL PROTECTED]
Subject: Re: URL Rewriting & multipart/form-data
>>> "Boemio, Neil (CAP, FGI)" <[EMAIL PROTECTED]> 12-May-00
9:38:51 PM >>>
>My site (JSP pages) does URL rewriting
>(response.encodeURL(url)) and I have a form with
>ENCTYPE="multipart/form-data". After the form is
>submitted, I navigate to another page (URL encoded
>of course), but the session id in the URL changes,
>which of course causes me to lose all the session variables.
>Not good.
But when the form is submitted you get the correct session id yes?
(ie: request.getSession().getId() is the same as the session you have
on the page?)
>Is this a bug? Is there a way around?
Well... you don't say what servlet engine you are using... or how you
are doing multipart encoding.
You may not be aware:
- if you do multipart encoding you have to do it yourself
- you must therefore handle the getting and parsing of the POST data
- you can use HttpUtils.parsePostData() to actually do the parsing
- it will depend on your container's implementation of sessions
whether it can then pick up the session or not (for example my own
engine GNU-Paperclips would not do that... but then we plan to offer
multipart parsing as an extension to the API).
Nic Ferrier
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html