Simple few lines of code to loop through a request and print out every parameter and its value.
Enumeration parameterNames = request.getParameterNames();
while (parameterNames.hasMoreElements()){
String requestName = (String)parameterNames.nextElement();
String comment = equest.getParameter(requestName);
System.out.println(requestName);
System.out.println(comment);
}