天天躁日日躁狠狠躁AV麻豆-天天躁人人躁人人躁狂躁-天天澡夜夜澡人人澡-天天影视香色欲综合网-国产成人女人在线视频观看-国产成人女人视频在线观看

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)載需保留來源!

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

主站蜘蛛池模板: 亚洲欧美日韩国产手机在线 | 天美传媒在线观看完整高清 | 亚洲在线成色综合网站 | 色婷婷国产精品视频一区二区三区 | 久久一本综合 | 嗯啊…嗯np男男双性总受 | yellow高清免费观看日本 | 在线看片韩国免费人成视频 | 一区视频免费观看 | 在线亚洲中文精品第1页 | 在线播放日韩欧美亚洲日本 | 美国ZOOM动物在线观看 | 午夜dj影院视频观看 | 99久久99久久精品 | 99re热有精品国产 | 久久亚洲欧美国产综合 | 久久性色AV亚洲电影无码 | 国语自产视频在线不卡 | CHINESE熟女老女人HD视频 | 久久中文电影 | 一个人视频日本在线观看 | qvod欧美电影| 亚洲男人在线观看 | yy8090韩国理伦片在线 | 国产在线精品视亚洲不卡 | 亚洲2017天堂色无码 | 成人国产精品日本在线 | 桃花在线观看播放 | 国产亚洲精品高清视频免费 | AV无码国产精品午夜A片麻豆 | 成在线人免费 | 蜜桃AV色欲A片精品一区 | 新妺妺窝人体色WWW 新金梅瓶玉蒲团性奴3 | 色悠悠电影网 | 久久一区精品 | 日韩毛片在线视频 | 一个人的视频全免费在线观看www | 失禁 调教 刺激 哭喊男男 | videos gratis欧美另类 | 中文免费视频 | 亚洲免费国产在线日韩 |