一区二区久久-一区二区三区www-一区二区三区久久-一区二区三区久久精品-麻豆国产一区二区在线观看-麻豆国产视频

JSP bean獲取各種參數(shù)

1.包:
復(fù)制代碼 代碼如下:
package beanpackage;
/**
*
* @author lucifer
*/
public class SystemProperties {
public String getRuntimeEnvironmentVersion(){
return System.getProperty("Java.version");
}
public String getRuntimeEnvironmentVendor(){
return System.getProperty("Java.vendor");
}
public String getVmVersion(){
return System.getProperty("Java.vm.version");
}
public String getVmVendor(){
return System.getProperty("Java.vm.vendor");
}
public String getVmName(){
return System.getProperty("Java.vm.name");
}
public String getVmSpecVersion(){
return System.getProperty("Java.vm.specification.version");
}
public String getVmSpecVendor(){
return System.getProperty("Java.vm.specification.vendor");
}
public String getVmSpecName(){
return System.getProperty("Java.vm.specification.name");
}
public String getRteSpecName(){
return System.getProperty("Java.specification.name");
}
public String getRteSpecVersion(){
return System.getProperty("Java.specification.version");
}
public String getRteSpecVendor(){
return System.getProperty("Java.specification.vendor");
}
public String getOperatingSystemName(){
return System.getProperty("os.name");
}
public String getOperatingSystemVersion(){
return System.getProperty("os.version");
}
public String getOperatingSystemArchitecture(){
return System.getProperty("os.arch");
}
}

2.JSP代碼:
復(fù)制代碼 代碼如下:
<%--
Document : usebean
Created on : 2009-10-3, 13:06:24
Author : lucifer
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<jsp:useBean id="properties" class="beanpackage.SystemProperties"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
Operating System Name:
<jsp:getProperty name="properties" property="operatingSystemName"/>
<br>
Operating System Version:
<jsp:getProperty name="properties" property="operatingSystemVersion"/>
<br>
Operating System Architecture:
<jsp:getProperty name="properties" property="operatingSystemArchitecture"/>
<br>
<br>
Runtime Environment Version(JDK version):
<jsp:getProperty name="properties" property="runtimeEnvironmentVersion"/>
<br>
Runtime Environment Vendor(JDK vendor):
<jsp:getProperty name="properties" property="runtimeEnvironmentVendor"/>
<br>
<br>
VM Version:
<jsp:getProperty name="properties" property="vmVersion"/>
<br>
VM Vendor:
<jsp:getProperty name="properties" property="vmVendor"/>
<br>
VM Name:
<jsp:getProperty name="properties" property="vmName"/>
<br>
<br>
RTE Specification Version:
<jsp:getProperty name="properties" property="rteSpecVersion"/>
<br>
RTE Specification Vendor:
<jsp:getProperty name="properties" property="rteSpecVendor"/>
<br>
RTE Specification Name:
<jsp:getProperty name="properties" property="rteSpecName"/>
<br>
<br>
VM Specification Name:
<jsp:getProperty name="properties" property="vmSpecName"/>
<br>
VM Specification Version:
<jsp:getProperty name="properties" property="vmSpecVersion"/>
<br>
VM Specification Vendor:
<jsp:getProperty name="properties" property="vmSpecVendor"/>
</body>
</html>

3.輸出:
Operating System Name: Windows Vista
Operating System Version: 6.0
Operating System Architecture: x86
Runtime Environment Version(JDK version): 1.6.0_16
Runtime Environment Vendor(JDK vendor): Sun Microsystems Inc.
VM Version: 14.2-b01
VM Vendor: Sun Microsystems Inc.
VM Name: Java HotSpot(TM) Client VM
RTE Specification Version: 1.6
RTE Specification Vendor: Sun Microsystems Inc.
RTE Specification Name: Java Platform API Specification
VM Specification Name: Java Virtual Machine Specification
VM Specification Version: 1.0
VM Specification Vendor: Sun Microsystems Inc.

jsp技術(shù)JSP bean獲取各種參數(shù),轉(zhuǎn)載需保留來(lái)源!

鄭重聲明:本文版權(quán)歸原作者所有,轉(zhuǎn)載文章僅為傳播更多信息之目的,如作者信息標(biāo)記有誤,請(qǐng)第一時(shí)間聯(lián)系我們修改或刪除,多謝。

主站蜘蛛池模板: 美女扒开腿被男人猛视频 | 四虎永久在线日韩精品观看 | 91综合在线| 亚洲福利一区二区 | 久久er国产精品免费观看2 | 国内精品久久久久久久999下 | 九九99九九在线精品视频 | 国产全黄一级毛片 | 亚洲第一区精品日韩在线播放 | 五月天激情开心网 | 国产精彩刺激对白视频 | 日本精品久久久久护士 | 亚洲成人综合在线 | 色婷五月| 国农村精品国产自线拍 | 女人18毛片免费视频播放 | 视色4se影院在线播放 | 色哟哟在线观看视频高清大全 | 欧美xxxx三人交性视频 | 最新91视频 | 一级做a爰片久久毛片武则天 | 精品91麻豆免费免费国产在线 | 亚洲一区二区色 | 黄视频网站免费 | 欧美性巨大 | 99在线在线视频免费视频观看 | 日本韩国三级在线 | 91麻豆久久久 | 玖玖在线国产精品 | 看全色黄大色黄女片做 | 福利片欧美 | 国产成人91 | 国产在视频线精品www666 | baoyu777.永久免费视频 | 精品一区二区三 | 小视频在线观看免费 | 久草色视频| 日本高清视频wwww色 | 国产大臿蕉香蕉大视频 | 玖玖草在线观看 | a一级一色一情 |