>> Hi!
>> I am trying to extract content from ServletInputStream:
[quoted text clipped - 14 lines]
> what im trying to do, is to get the content when the user clicks on a
> link to open the page (not by submitting it)
Hi,
I think that when they click on a link, which sends an HTTP GET request
to the webserver, there is no "content". When they do a submit, which
sends an HTTP POST (e.g., submitting a form), then there is "content"
which can be read.
Jim
Lothar Kimmeringer - 02 Sep 2007 11:48 GMT
> I think that when they click on a link, which sends an HTTP GET request
> to the webserver, there is no "content". When they do a submit, which
> sends an HTTP POST (e.g., submitting a form), then there is "content"
> which can be read.
Nearly ;-) There is only content that can be read, if there
is content being sent. If there is content, will be estimated
with the content-type. With a Content-type of
application/x-www-form-urlencoded (that will be sent if a
form is submitted using POST) I wouldn't expect data that can
be read from the stream, either. The data will be already read
by the surrounding ServletContext to enable use
request.getParameter(...)
But I might be wrong and you should just try it.
Regards, Lothar

Signature
Lothar Kimmeringer E-Mail: spamfang@kimmeringer.de
PGP-encrypted mails preferred (Key-ID: 0x8BC3CD81)
Always remember: The answer is forty-two, there can only be wrong
questions!
Andrew Thompson - 02 Sep 2007 12:19 GMT
>..you should just try it.
I personally* rate that advice as '10 stars' (out of ten).
( * In case anybody should be even the slightest bit
interested in my opinion of the matter. ;)

Signature
Andrew Thompson
http://www.athompson.info/andrew/