Information shows that the client code
Abstract: The information showed that the client code
</ Td> </ tr> <tr> <td width="437" height="35" valign="top" class="ArticleTeitle"> client information shows that the code, including client ip, region, operating system and browser types.
Jsp following documents: Other code download.
<% @ Page contentType = "text / html; GBK charset ="%>
<% @ Page language = "java" import = "ip .*"%>
<%
String ip = request.getRemoteAddr ();
String [] addr = IPLocalizer.search (request);
/ / String ua = request.getHeader ( "User-Agent");
/ / Out.println (ua + "
");
Out.println ( "Your IP is:" + ip + "from:" + addr [0] + addr [1 ]+","
+ OLUser.getUserSystem (request.getHeader ( "User-Agent "))+","
+ OLUser.getUserBrowser (request.getHeader ( "User-Agent ")));
%> </ Td> <td width="247" valign="top" class="ArticleTeitle">
</ Td> </ tr> <tr> <td height="25" colspan="2" valign="top" class="ArticleTeitle">
↑ Back
Tags: java code






