Patrick Patrick - 15 days ago 5
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

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)