Hello everyone,

I am running into a slight problem.  I am currently implementing the Model
II Framework for a java-based
application we have.  We now need to add a JSP page that is used to upload a
file from the client to the
server using the <input type=file> and <form enctype="multipart/form-data">
tags.  Unfortunatly, the controller
servlet is unable to route a request to the proper page because it needs two
parameters:
<input type=hidden name=page value="">
<input type=hidden name=handler value="">

When using the multipart request for uploading files the parameters are
unavailable through request.getParameter("page").
Instead, I am forced to get the servlets input stream and parse it.  But
after parsing the InputStream I am unable to forward the request because the
InputStream cannot be reset.  The accepting JSP generates a null exception
because the InputStream
has already been read.

Has anyone had this problem? and/or does anyone have any suggestions for
getting around it?

Thanks in advance for any help!

Shone Sadler

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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