I'm using Apache 1.3.4 and JServ 1.0b2 on Win32.  I'm trying to use a GNUJSP
page to respond to an HTML form.  Unfortunately, I've run into a problem that
may be a bug in JServ, or it may just be my lack of understanding of POST
requests.

The form:
<form method="post" action="response.jsp?name=value">
<input type="submit" value="Hello">
</form>

Inside the processing for the response.jsp compiled servlet:
request.getQueryString() = name=value
request.getRequestURI() = /local/dir/response.jsp
request.getParameter("name") = null     # !!!?!?!


Since the JSDK doc states under the doc for getParameter, "in an HTTP servlet
this method would return the value of the specified query string parameter," I
think the return result of request.getParameter("name") above should be
"value".

Changing the form so that the method is "get" rather than "post" causes things
to work correctly.

I need to get access to both form response data and URL query parameters. 
What am I missing?  Thanks for any help.

Bill Lipa


----------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to