메뉴 건너뛰기

tnt_lang

jsp/java java에서 system의 property확인 jsp파일

박상현 2001.10.27 13:13 조회 수 : 2358 추천:18

<%@ page contentType="text/html; charset=euc-kr"%>
<%@ page import="java.util.*" %>
<%@ page import="com.lgeds.jdf.*" %>

<html>
<head><title>시스템 Properties</title></head>
<body>
        
<h1>시스템 Properties:</h1>
<%
                Properties ps = System.getProperties();
                Enumeration enum = ps.propertyNames();        
        
            String key = "";
            while (enum.hasMoreElements()) {                
                        key = (String) enum.nextElement();
                        out.println(" "+key+": " + ps.getProperty(key) + "<br>");
            }

                Config conf = new Configuration();
%>
request.getRealPath(".") : <%=request.getRealPath(".")%><br>
conf.get("gov.mpb.pbf.db.mopb.url") : <%=conf.get("gov.mpb.pbf.db.mopb.url")%><br>
</body>
</html>
위로