Patrick Patrick - 10 months ago 84
HTTP Question

Accessing post variables using Java Servlets

What is the Java equivalent of PHP's

$_POST
? After searching the web for an hour, I'm still nowhere closer.

Answer Source

Your HttpServletRequest object has a getParameter(String paramName) method that can be used to get parameter values. http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getParameter(java.lang.String)