I have a servlet which subclasses another servlet.  In the subclass service() method, 
the first thing
I do is read a portion of the request using the ServletInputStream.  This works fine 
and I am able to
retrieve the information I need.  However, I then call super.doPost(request, response) 
and I get the
following exception:
java.io.IOException: Corrupt form data: no leading boundary

Even though I'm closing the ServletInputStream it appears as though the data already 
read is no
longer available.
jsp form:
    <form name="CheckInDocForm" method="post" action="<%= checkinFileURL %>"
enctype="Multipart/form-data" onSubmit=" return submitForm()" >
                <input type="checkbox" name="promote" value="yes">&nbsp;
                <input type="file" name="file">&nbsp;
     </form>

java code:
        readRequest(request);  //Gets the ServiceInputStream and performs the 
readLine() method
multiple times
        super.doPost(request, response);
Throws the exception noted above.  Is the InputStream close() method doing anything?  
How can I
process the InputStream twice?  Any help is appreciated.

Thanks,
Tom
> g             GE Corporate Research & Development
> ______________________________________________
>      Tom St.Louis
>      GE Corporate Research & Development
>      One Research Circle, K1-5C39C
>      Schenectady, NY  12309
>      Phone: (518) 387-4900  Dial Comm: 8*833-4900
>      Email: [EMAIL PROTECTED]
>

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