package beanpackage;
/**
*
* @author lucifer
*/
public class SystemPRoperties {
public String getRuntimeEnvironmentVersion(){
return System
}
public String getRuntimeEnvironmentVendor(){
return System
}
public String getVmVersion(){
return System
}
public String getVmVendor(){
return System
}
public String getVmName(){
return System
}
public String getVmSpecVersion(){
return System
}
public String getVmSpecVendor(){
return System
}
public String getVmSpecName(){
return System
}
public String getRteSpecName(){
return System
}
public String getRteSpecVersion(){
return System
}
public String getRteSpecVendor(){
return System
}
public String getOperatingSystemName(){
return System
}
public String getOperatingSystemVersion(){
return System
}
public String getOperatingSystemArchitecture(){
return System
}
}
<%
Document : usebean
Created on :
Author : lucifer
<%@page contentType="text/html" pageEncoding="UTF
<!DOCTYPE HTML PUBLIC "
"
<jsp:useBean id="properties" class="beanpackage
<html>
<head>
<meta http
<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>
Operating System Name: Windows Vista
Operating System Version:
Operating System Architecture: x
Runtime Environment Version(JDK version):
Runtime Environment Vendor(JDK vendor): Sun Microsystems Inc
VM Version:
VM Vendor: Sun Microsystems Inc
VM Name: Java HotSpot(TM) Client VM
RTE Specification Version:
RTE Specification Vendor: Sun Microsystems Inc
RTE Specification Name: Java Platform API Specification
VM Specification Name: Java Virtual Machine Specification
VM Specification Version:
VM Specification Vendor: Sun Microsystems Inc
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20116.html