You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Code Rebel <re...@yahoo.com> on 2005/08/23 02:39:29 UTC
Tomcat 3.3.2: Not able to retrieve parameters
Hi all,
For some reason I'm not able to retrieve the
parameters from a URL.
I have a simple test JSP file that attempts to print
out the names and values of parameters passed via the
URL. The JSP loads, executes and provides a response
just fine, but the call to
HttpServletRequest.getParameterNames() always returns
an empty Enumeration, even when there are parameters
on the URL.
So, for example, if the following URL is given:
http://localhost/examples/jsp/test.jsp?first=1&second=2
...I would expect getParameterNames() to return an
Enumeration containing two strings: "first" and
"second"
But no such luck.
My hunch is that there is something wrong in the
configuration, probably in the server.xml file, but so
far I haven't been able to figure out what the problem
might be.
Thanks in advance for your help.
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org