|
Revision 51, 0.9 KB
(checked in by yabuki, 2 years ago)
|
|
|
| Line | |
|---|
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
|---|
| 2 | <%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"%> |
|---|
| 3 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> |
|---|
| 4 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 5 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 6 | <head> |
|---|
| 7 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
|---|
| 8 | <title>Requested Parameters</title> |
|---|
| 9 | </head> |
|---|
| 10 | <body> |
|---|
| 11 | <table> |
|---|
| 12 | <tr><th>name</th><th>value</th></tr><% |
|---|
| 13 | for (Enumeration e=request.getParameterNames();e.hasMoreElements();) { |
|---|
| 14 | String name=(String)e.nextElement(); |
|---|
| 15 | for (String value:request.getParameterValues(name)) {%> |
|---|
| 16 | <tr> |
|---|
| 17 | <td><c:out value="<%=new String(name.getBytes(\"ISO8859_1\"),\"UTF-8\") %>" /></td> |
|---|
| 18 | <td><c:out value="<%=new String(value.getBytes(\"ISO8859_1\"),\"UTF-8\") %>" /></td> |
|---|
| 19 | </tr><% |
|---|
| 20 | } |
|---|
| 21 | }%> |
|---|
| 22 | </table> |
|---|
| 23 | </body> |
|---|
| 24 | </html> |
|---|