日期:2014-05-16  浏览次数:20365 次

判断浏览器类型-JSP文件
<%@ page language="java" pageEncoding="UTF-8"%>

<%
java.util.Enumeration names = request.getHeaderNames();
while (names.hasMoreElements()) {
String name = (String) names.nextElement();
out.println("["+name + "]:" + request.getHeader(name) + "<br/>");
}
%>