You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Voegele, Jason" <Ja...@us.origin-it.com> on 2000/11/10 18:10:40 UTC
Request Parameters Getting Lost
We've run across some problems using request parameters in our JSP. We
decided to create a JSP that does nothing but print out request parms and
values, just to ensure that they are being passed with the request.
We invoke the JSP like so: http://localhost:8080/dwstatus?page_id=TEST_PAGE
Our JSP simply prints out the value of the page_id parameter, and enumerates
the names of all parameters sent.
The value we get for the page_id parameter is always null. There are no
parameters present in the Enumeration returned by getRequestParameters().
Can anyone explain what's happening to our request parameters? We're using
Tomcat standalone on Windows NT Server 4.0.
Thanks,
Jason Voegele
RE: Request Parameters Getting Lost
Posted by CPC Livelink Admin <cp...@fitzpatrick.cc>.
Actually, the functions are getParameterNames and getParameterValues
-----Original Message-----
From: Stefan Woithe [mailto:stefan.woithe@net-linx.com]
Sent: Friday, November 10, 2000 12:25 PM
To: tomcat-user@jakarta.apache.org
Subject: Re: Request Parameters Getting Lost
Hi Jason,
I use Tomcat 3.1final and in an JSP the implicit object "request". If you
know the name of the parameter use request.getParameter(<name>). Where is
the method "getRequestParameters()" located -- for sure not in
javax.servlet.ServletRequest?
Regards
Stefan
> "Voegele, Jason" wrote:
>
> We've run across some problems using request parameters in our JSP. We
decided to create a JSP that does nothing but print out request parms and
values, just to ensure that they are being passed with the request.
>
> We invoke the JSP like so:
http://localhost:8080/dwstatus?page_id=TEST_PAGE
>
> Our JSP simply prints out the value of the page_id parameter, and
enumerates the names of all parameters sent.
>
> The value we get for the page_id parameter is always null. There are no
parameters present in the Enumeration returned by getRequestParameters().
>
> Can anyone explain what's happening to our request parameters? We're
using Tomcat standalone on Windows NT Server 4.0.
>
> Thanks,
> Jason Voegele
Re: Request Parameters Getting Lost
Posted by Stefan Woithe <st...@net-linx.com>.
Hi Jason,
I use Tomcat 3.1final and in an JSP the implicit object "request". If you know the name of the parameter use request.getParameter(<name>). Where is the method "getRequestParameters()" located -- for sure not in javax.servlet.ServletRequest?
Regards
Stefan
> "Voegele, Jason" wrote:
>
> We've run across some problems using request parameters in our JSP. We decided to create a JSP that does nothing but print out request parms and values, just to ensure that they are being passed with the request.
>
> We invoke the JSP like so: http://localhost:8080/dwstatus?page_id=TEST_PAGE
>
> Our JSP simply prints out the value of the page_id parameter, and enumerates the names of all parameters sent.
>
> The value we get for the page_id parameter is always null. There are no parameters present in the Enumeration returned by getRequestParameters().
>
> Can anyone explain what's happening to our request parameters? We're using Tomcat standalone on Windows NT Server 4.0.
>
> Thanks,
> Jason Voegele