You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@jakarta.apache.org by Jeff Haynes <Je...@techno.ca> on 2000/02/15 17:58:00 UTC

Wierd POST behavior with Tomcat

I've been experiencing some pretty strange behavior with Tomcat
and form POSTs.  When I try something like:

	<FORM METHOD="post" ACTION="input.jsp">

or

	<FORM METHOD="post" ACTION="InputServlet">


I cannot get any parameter values out of the request - they're all
null.  However, if I change the above syntax to:

	<FORM TYPE="post" ACTION="input.jsp">

or

	<FORM TYPE="post" ACTION="InputServlet">

The parameter values from the submitted form are no longer
null, but the entire darned query string shows up in the
Location field of my browser - like a GET method is supposed
to do.  This behavior seems pretty bizzare, and it wouldn't
be so bad if the POST info didn't show up in the URL's query 
string.

Is there any way I can turn off the query string with form POSTs?

I'm running Apache 1.3.9 with Jserv 1.1, Tomcat 3.0, IBM JDK 1.1.8,
and IBM JRE 1.1.8 on Redhat Linux 6.1 Kernal 2.2.12-20.

Any help would be much appreciated, even if it's just some direction.

Thanks,
j