Hi,

I have a servlet that filters the entrance to an application (login,
password, authorized IP, different parts of the application depending on
the login). When the request matches an user (ie there is a record in the
database granting access the part of the application specified in the
request), the request if forwarded to the right servlet, in charge of the
business logic, by a RequestDispatcher.

When the request is multipart, the uploaded files part are recorded in the
checkpoint servlet, but the request dispatcher dispatches nothing but the
headers, as long as the files have already been received (it's push), and
the request is empty (all the parameters are received through the
MultipartRequest and what's forwarded by the RequestDispatcher is an
HttpServletRequest. And the second servlet gets a header saying that the
content type of the request is multipart/form-data, and an empty simple
http request.

I've been working with multipart request for 2 years, but I don't know how
to handle this. One simple solution would be (as I always did until now) to
group both the identification and the business logic in a single servlet,
but this is precisely what I want to avoid.

Best regards




______________________________________________
Sylvain Roche
Responsable développement
Add-Online
www.add-online.fr

80 rue d'Alsace
69100 VILLEURBANNE
France

tel : +33 437431260
fax: +33 437431269

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to