>>> Gokul Singh <[EMAIL PROTECTED]> 02-Feb-01 8:07:32 AM >>>
>Can a POST request not have a QueryString()?
>I have deployed some servlets over the net where
>I have used QueryStrings with post requests and
>they worked well with Tomcat.
I think I can clear this up.
The query string is part of the URI.
ie: getQueryString returns the part of the URI after the "?" if it
exists,
A POST request *can* have a query string as part of it's URI, for
example consider the following form:
<form method="POST" action="/myserver?arg1=val1">
<input type="text" name="arg2" value="val2">
<input type="submit" name="button" value="act">
</form>
When this form is submitted the servlet listening to requests on
/myserver will recieve:
querystring=="arg1=val1"
params= { "arg1", "val1"
"arg2", "val2" };
In other words a POST can have a query string but the query string
does not reflect the values in the POST body.
Hope that clears it up.
Nic
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html