request.getRemoteAddr();//访问者IP
request.getRequestURI();//访问页IP
String Agent = request.getHeader("User-Agent");
StringTokenizer st = new StringTokenizer(Agent,";");
st.nextToken();
st.nextToken();//得到访问者的浏览器名
System.getProperty("os.name");//得到访问者的操作系统名
request.getAttribute("title");//得到标题
if(visitpagetitle==null||visitpagetitle.equals("")){
visitpagetitle="无标题";
}
String backIP=req.getHeader("Referer");//得到父页面
if(backIP==null||backIP.equals("")){
backIP="用户直接访问";
}
request.getRequestURI();//访问页IP
String Agent = request.getHeader("User-Agent");
StringTokenizer st = new StringTokenizer(Agent,";");
st.nextToken();
st.nextToken();//得到访问者的浏览器名
System.getProperty("os.name");//得到访问者的操作系统名
request.getAttribute("title");//得到标题
if(visitpagetitle==null||visitpagetitle.equals("")){
visitpagetitle="无标题";
}
String backIP=req.getHeader("Referer");//得到父页面
if(backIP==null||backIP.equals("")){
backIP="用户直接访问";
}