判断浏览器类型-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/>");
}
%>

你可能感兴趣的:(java,jsp,浏览器)