Print All Request Parameter in java

To Print all Request Parameter of a HTTP request

java.util.Enumeration enu = request.getParameterNames();
while(enu.hasMoreElements()){
String paramName = (String)enu.nextElement();
System.out.println("PARAM: "
+ paramName
+ ": "
+ request.getParameter(paramName));
}

Comments

Popular posts from this blog

Conversion from Clob To String in java and Vice versa

Portable Java 8/ JDK8 setup without admin rights

Multi Threading , Producer consumer problem in Java