Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Configuration :
I'm having trouble with opening the body of a request with getReader() and getInputStream().
----------
From: Donald Ball balld@webslingerZ.com
To: Java Apache Users java-apache-users@list.working-dogs.com
Subject: Re: getReader() & getInputStream()
Date: Sun, Mar 14, 1999, 10:59 PM

> I'm having trouble with opening the body of a request with getReader() and
> getInputStream(). The calls work but reading from them results in an EOF
> (-1 bytes read). This causes my multipart decoder to barf.

Make sure you don't call any of the getRequestParameter methods or
anything that requires touching the inputstream... if you do so,
apache-jserv will completely consume the stream in the process of parsing
out (trying to, anyway) all of the form data and you'll be unable to read
it yourself.

- donald
[Append to This Answer]
Previous: (Answer) How do I map a servlet to a file extension?
Next: (Answer) How to get Oracle 7.3, JDBC (native) and Apache JServ running
This document is: http://java.apache.org/faq/?file=62
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.