<%@page contentType="text/html; charset=GBK"%><%@page import="java.io.*,java.util.*,java.text.*,java.lang.*,java.net.*"%><html><head><meta http-equiv="Content-Type" content="text/html; charset=GBK" /><meta name="keywords" content="向继根,Xiang Jigen,QQ,190582560"><meta name="description" content="Programmer:向继根 QQ:190582560 Email:190582560@qq.com"><meta name="author" content="向继根,Xiang Jigen" /><title>主机信息</title><link rel="stylesheet" type="text/css" href="../images/Style.css"/><script type="text/javascript" src="../../js/min.js"></script><script type="text/javascript" src="../../js/common.js"></script><script type="text/javascript" src="../../js/css.js"></script></head><body><table cellpadding="0" cellspacing="1" class="table_list"><caption>	...:::服务器的有关参数:::...</caption><tr><th width="20%" height="30" class="align_l bg">&nbsp;<span class="green">对象</span></th><td colspan="3" class="align_l bg">&nbsp;<span class="green">属性</span></td></tr><tr><th class="align_l bg">&nbsp;域名-服务器名<br>&nbsp;<span class="gray">Domain Name</span></th><td colspan="3" class="align_l">&nbsp;<%=request.getServerName()%> &nbsp;-&nbsp;<%=InetAddress.getLocalHost()%></td></tr><tr><th width="20%"	class="align_l bg">&nbsp;服务器端口<br>&nbsp;<span class="gray">Server Port</span></th><td width="30%" class="align_l">&nbsp;<%=request.getServerPort()%></td><th width="20%" class="align_l bg">&nbsp;服务器操作系统<br>&nbsp;<span class="gray">Operating System</span></th><td width="30%" class="align_l">&nbsp;<%=System.getProperty("os.name")%> <%=System.getProperty("os.arch")%> <%=System.getProperty("os.version")%></td></tr><tr><th class="align_l bg">&nbsp;Web服务器版本<br>&nbsp;<span class="gray">Web Server Version</span></th><td class="align_l">&nbsp;<%=getServletContext().getServerInfo()%></td><th width="20%" class="align_l bg">&nbsp;Java版本<br>&nbsp;<span class="gray">Java Version</span></th><td class="align_l">&nbsp;<%=System.getProperty("java.version")%></td></tr><tr><th class="align_l bg">&nbsp;服务器语种<br>&nbsp;<span class="gray">Server Language</span></th><td class="align_l">&nbsp;<%=request.getLocale()%></td><th width="20%" class="align_l bg">&nbsp;JDK版本<br>&nbsp;<span class="gray">JDK Version</span></th><td class="align_l">&nbsp;<%=System.getProperty("java.vm.version")%></td></tr><tr><th class="align_l bg">&nbsp;服务器时间<br>&nbsp;<span class="gray">Server Current Time</span></th><td class="align_l">&nbsp;<% Calendar cal=Calendar.getInstance();SimpleDateFormat formatter=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss E");out.print(formatter.format(cal.getTime())); %></td><th width="20%" class="align_l bg">&nbsp;系统默认编码格式<br>&nbsp;<span class="gray">File Encoding</span></th><td class="align_l">&nbsp;<%=System.getProperty("file.encoding")%></td></tr><tr><th class="align_l bg">&nbsp;本文件路径<br>&nbsp;<span class="gray">Full Path</span></th><td colspan="3" class="align_l">&nbsp;<%=application.getRealPath("./")%></td></tr></table><table cellpadding="0" cellspacing="1" class="table_list"><caption class="align_l">...:::Java环境有关参数:::...</caption><tr><th width="20%" height="30" class="align_l bg">&nbsp;<span class="green">对象</span></th><td colspan="3" class="align_l bg">&nbsp;<span class="green">属性</span></td></tr><tr><th class="align_l bg">&nbsp;Java Version</th><td width="30%" class="align_l">&nbsp;<%=System.getProperty("java.version")%></td><th width="20%" class="align_l bg">&nbsp;Java/JVM Vendor</th><td width="30%" class="align_l">&nbsp;<%=System.getProperty("java.vendor")%></td></tr><tr><th class="align_l bg">&nbsp;JVM Name</th><td class="align_l">&nbsp;<%=System.getProperty("java.vm.name")%></td><th width="20%" class="align_l bg">&nbsp;JVM Version</th><td class="align_l">&nbsp;<%=System.getProperty("java.vm.version")%></td></tr><tr><th class="align_l bg">&nbsp;Java Home</th><td class="align_l">&nbsp;<%=System.getProperty("java.home")%></td><th width="20%" class="align_l bg">&nbsp;Java Class Version</th><td class="align_l">&nbsp;<%=System.getProperty("java.class.version")%></td></tr><tr><th class="align_l bg">&nbsp;Free Memory</th><td class="align_l">&nbsp;<%=Runtime.getRuntime().freeMemory()/1024.0/1024 %>MB</td><th width="20%" class="align_l bg">&nbsp;Total Memory</th><td class="align_l">&nbsp;<%=Runtime.getRuntime().totalMemory()/1024.0/1024 %>MB</td></tr><tr><th class="align_l bg">&nbsp;Java Class Path</th><td colspan="3" class="align_l">&nbsp;<% String StrClassPath=System.getProperty("java.class.path");int i=StrClassPath.length();if(i>200){ StrClassPath=StrClassPath.substring(0,200); StrClassPath=StrClassPath+"&#8230;&#8230;";}out.print(StrClassPath); %></td></tr></table><p>&nbsp;</p></body></html>