[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Re: gnujsp: jsp get or post methods?
Hi Ryan,
Ryan Vanderwerf wrote:
> Anyone know if you can call a .jsp as a cgi GET or POST? If so, how do you
> grab the parameters in the JSP being called? Was curious as I see
> Microshaft's ASP do this a lot...
You can let a JSP page be the target of a FORM tag, either with a GET or
a POST request method (is this is what you mean). You can grab the
request method with request.getRequestMethod() and the parameters with
request.getRequestParameter(String key).
Regards, Vincent.