JSP야

서버 속성알아보는 jsp

administrators 2009. 12. 7. 14:22

<%@ page contentType = "text/html;charset=euc-kr" %>

<html>
<head>
<title>System.getProperty()</title>
<link rel="stylesheet" href="/images/css/sos_style.css" type="text/css">
</head>
<body>

<table border="1">
<tr>
<td><br><b>### System.getProperty() ###</b><br> </td>
</tr>
<%
java.util.Properties prop = System.getProperties();
java.util.Enumeration enum = prop.propertyNames();

String key = null;
while(enum.hasMoreElements()) {
key = (String)enum.nextElement();
out.println("<tr><td>");
out.println(key + " : " + prop.getProperty(key));
out.println("</td></tr>");
}
%>
</table>

</body>
</html>

'JSP야' 카테고리의 다른 글

Parameter알아보기  (0) 2009.12.07
SimpleDateFormat  (0) 2009.12.07
jsp:include  (0) 2009.12.07
request 관련  (0) 2009.12.07
세션 알아보기  (0) 2009.12.07