response.setContentType("text/html");
PrintWriter out = response.getWriter( );
out.println(
"<html><head><title>Show Parameters</title></head><body>"
+ "<h1>Parameters</h1><ul>");
for ( Enumeration e=request.getParameterNames( );
e.hasMoreElements( ); ) {
String name = (String)e.nextElement( );
String value = request.getParameter( name );
if (! value.equals("") )
out.println("<li>"+ name +" = "+ value );
}
out.close( );