Here is what seems to be a solutionless problem.

I use JRun, with session persistence enabled, but without session cookie.
AFAIK, the jrunsessionid parameter is what is used to recognize the session
in this case. I think it is not strictly a jrun problem, because I know
other servlet servers also have the possibility to enable sessions without
cookies.

When posted in a multipart form, the form fields are no longer directly
stored in the request, and thus available with a request.getParameter.
That's why Jason's classes are usefull. But one of the parameter which is
needed here NEEDS to be in the request object. The best that is available,
is to recover it through Jason's MultipartRequest object. In this case, the
session persistence engine cannot find it, and the session is lost.

I don't think that it is possible to add a parameter in the request object.
So what I thought I could do is to have another servlet treat the binary
datas from the multipart request (for example images), and redirect the
other parameters in a new request to the original servlet. The original
servlet could this way have its session persitence work normally, and the
datas of the form would be handled by the "multipart servlet". The problem
is that the first servlet would verify the session validity, which is a huge
problem when it's about saving files on a server.

Has anyone worked out this question, or am I in a correct direction ?
Any help will be welcomed

Thanks in advance
Sylvain

===========================================================================
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

Reply via email to