| 1 |
<html><head> |
| 2 |
<%@ page import="java.util.Enumeration" %> |
| 3 |
</head><body> |
| 4 |
<h1>JSP Dump</h1> |
| 5 |
|
| 6 |
<table border="1"> |
| 7 |
<tr><th>Request URI:</th><td><%= request.getRequestURI() %></td></tr> |
| 8 |
<tr><th>ServletPath:</th><td><%= request.getServletPath() %></td></tr> |
| 9 |
<tr><th>PathInfo:</th><td><%= request.getPathInfo() %></td></tr> |
| 10 |
|
| 11 |
<% |
| 12 |
Enumeration e =request.getParameterNames(); |
| 13 |
while(e.hasMoreElements()) |
| 14 |
{ |
| 15 |
String name = (String)e.nextElement(); |
| 16 |
%> |
| 17 |
<tr> |
| 18 |
<th>getParameter("<%= name %>")</th> |
| 19 |
<td><%= request.getParameter(name) %></td></tr> |
| 20 |
<% } %> |
| 21 |
|
| 22 |
</table> |
| 23 |
</body></html> |