《JSP完全学习手册》学习心得:getHttpHeader
getHttpHeader.jsp:
<%@page contentType="text/html;charset=GB2312" isErrorPage="true"%>
<%@page import="java.util.Enumeration" %>
<%
out.println(exception);
Enumeration headers = request.getHeaderNames();
while(headers.hasMoreElements()){
String headerName = (String)headers.nextElement();
String header = request.getHeader(headerName);
out.println(headerName + " = ");
out.println(header);
out.println("<br />");
}
%>
posted on 2009-05-28 00:14
天堂露珠 阅读(263)
评论(0) 编辑 收藏 所属分类:
JSP