Does anyone know of a way to get only POST parameters from an HttpServletRequest object?
IE, PHP has the $_POST superglobal and Perl\'s CGI.pm will only retrieve POS
The question was answered in this related post:
Normaly you can GET and POST parameters in a servlet the same way: request.getParameter("cmd"); But only if the POST data is encoded as key-value pairs of content type: "application/x-www-form-urlencoded" like when you use a standard HTML form.
Normaly you can GET and POST parameters in a servlet the same way:
request.getParameter("cmd");
But only if the POST data is encoded as key-value pairs of content type: "application/x-www-form-urlencoded" like when you use a standard HTML form.