I am fairly new to servlets, but am very motivated to use them, and have
read everything I can find on the subject of this posting. My question is
this:
As I understand it, a POST returns a stream that must be accessed directly
to get the data from the client using the getReader() or getInputStream()
methods. If my server's implementation of HttpServletRequest (i.e.,
Request) does not include implemenations of getReader() or
getInputStream(), then would that explain why my compiler chokes when I try
to get the input stream in my doPost() override?
BufferedReader in = request.getReader();
or
ServletInputStream in = request.getInputStream();
The error messages indicate that these methods are not found in
HttpServletRequest. Lots of other Request methods work. (Someone else wrote
the Request and Response classes, and I do not have source code.)
If this might not be what is wrong, then how do I get the input stream?
The reason I care is that I want to get big text input using a <TEXTAREA>
from the client into the doPost() and do things to it, and none of the data
return methods, i.e. request.getQueryString(), seem to work in doPost(),
though they work fine in doGet().
Beast regards,
Dave J.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html