Scott Evans wrote:

> I believe that the problem with this approach is that POST/doPost()
> parameters are not supposed to be in the url where they can be seen by the
> client. They are intended to be sent as part of the header. If you want to
> send parameters as part of a link you should use the GET/doGet() or
> GET/service().

Actually, this behavior (doing a POST to a URL that also includes query parameters)
is legal in a servlet container implementing version 2.2 or later of the servlet
API.  The container will merge the parameters from the two sources for you, so you
still use the usual request.getParameter() type calls.

If you specify the same parameter name in both places, the values will be combined
into an array that can be retrieved with request.getParameterValues().  The values
from the request URI will appear first in this array.

>
> Scott

Craig McClanahan

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to