主頁(yè) > 知識(shí)庫(kù) > JSP bean獲取各種參數(shù)

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

熱門(mén)標(biāo)簽:四川正規(guī)外呼系統(tǒng)軟件 外呼直播語(yǔ)音系統(tǒng) 甘肅銷(xiāo)售電銷(xiāo)機(jī)器人公司 福建電銷(xiāo)貓機(jī)器人收費(fèi) 山東ai外呼電銷(xiāo)機(jī)器人好用嗎 地圖標(biāo)注專(zhuān)業(yè)和非專(zhuān)業(yè) 智能電話(huà)機(jī)器人銷(xiāo)售話(huà)術(shù) 湖北地圖標(biāo)注公司 汝南縣地圖標(biāo)注app
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.

標(biāo)簽:昌都 白銀 吳忠 梅州 南充 臨沂 肇慶 黔東

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《JSP bean獲取各種參數(shù)》,本文關(guān)鍵詞  JSP,bean,獲取,各種,參數(shù),;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問(wèn)題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《JSP bean獲取各種參數(shù)》相關(guān)的同類(lèi)信息!
  • 本頁(yè)收集關(guān)于JSP bean獲取各種參數(shù)的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章