Patrick Patrick - 1 year ago 104
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)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download