tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: Query string / InputStream
Date Wed, 18 Jun 2003 06:12:27 GMT

<christian.schuster@rsag.ch> wrote in message
news:OF5F028B87.78C25376-ONC1256D49.001819FA-C1256D49.0019B0BC@rsag.ch...
>
>
>
>
> Hi list,
>
> I have a question to servlets with TC. I set up a easy web site with a
form
> and request method POST. The action is then a call to a servlet. In this
> servlet I implemented doPost and doGet while doPost just calls doGet. Now
> when the servlet gets called the query string is null. This I also can see
> in the server log file. Also there is no no query string. I figured out
> that the actual query string can be read from the InputStream in the
> servlet.
>
> But why is this so? Did I set up something wrong?
>

This is how POST works.  The parameters are sent in the message body of the
request.

> What do I need to do to just get the query string?
>

If you just want to log the parameters someplace, it's an easy Filter to get
them and log them.

> On the web site I tried both methods POST and GET with the same effect. I
> am running TC 4.1.18 as a standalone web server.
>
> Any suggestions are welcome because I tried so many things now and do not
> know where the point is.
>
> Regards,
>
>
> Christian Schuster
>
> Rudolf Schuster AG
> Postfach 277
> CH - 3000 Bern 11
>
> http://www.rsag.ch
> ++41 31 348 05 30




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message