tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Wentzel <Michael.Went...@aswethink.com>
Subject RE: How do I get query string?
Date Thu, 11 Jan 2001 11:56:38 GMT
-----Original Message-----
From: Moonhyoung Lee [mailto:frog@channeli.net]
Sent: Thursday, January 11, 2001 7:05 AM
To: tomcat-user@jakarta.apache.org
Subject: How do I get query string?


 
<http://webmail.channeli.net/webmail/button.php3?id=ksgyjymfujigiuyluzz&user
=frog> 
Hi.
How do I get query string when the request were POSTed (application/x-www-
form-urlencoded).
request.getQueryString() seems to return null in this case.
 
Thanks in advance. ;-)

Have you tried 
 
Enumeration e   = request.getParameterNames();
String[]         val = null;
while (e.hasMoreElements())
{
    String s = (String)e.nextElement();
    val = request.getParameterValues(s);
    // ... operate on val[] ...
}
 

 ---
Michael Wentzel
Software Developer
<A HREF=" http://www.aswethink.com <http://www.aswethink.com/> ">Software
As We Think</A>
<A HREF=" mailto://wentzel@aswethink.com <mailto://wentzel@aswethink.com>
">Michael Wentzel</A>


Mime
View raw message