I apologize for the inconvenience, but I have discovered my error.
I have been looking at the problem for to long.
My page was erroring out because the parameters were unavailable for the
chained JSP.
I need to take the parameters from the initial multipart request and map
them to attributes for the chained JSP page (within the controller servlet).
Thanks for the help!
Shone Sadler
-----Original Message-----
From: Sivakumar Sankarasubramanian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 20, 2000 3:50 PM
To: [EMAIL PROTECTED]
Subject: RE: Model II & MultipartRequest
Hi Shone,
MultipartRequest has a getParameter method to retrieve values
This ONLY can be used to get parameters which comes in the form of
multipart/form-data
Sample
-------
MultipartRequest multi = new MultipartRequest(request, dir ,5 * 1024 * 1024
) ;
String FirstName = multi.getParameter("FirstName")) ;
-Siva
PS- Check the archives, there are tons of mails on this topic.
-----Original Message-----
From: Shone Sadler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 20, 2000 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: Model II & MultipartRequest
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
===========================================================================
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