Files
intermax_test/tomcat/webapps/mci_core.jsp
2024-04-05 10:31:45 +09:00

41 lines
1.0 KiB
Plaintext
Executable File

<%@ page contentType="text/html;charset=euc-kr" %>
<%@ page import = "java.rmi.*,
javax.naming.*,
java.sql.*,
javax.sql.*,
java.io.*,
java.net.*,
java.util.*"
%>
<%
URL url = null;
URLConnection urlConnection = null;
String sUrl = System.getProperty("service.call.url");
//String sUrl = "http://10.10.52.10:8880/cor/core_tmax_fep.jsp"; //CORE call
String sUrl_call_sucess_flag = sUrl + " URL Call succeeded";
Thread.sleep(1);
try {
url = new URL(sUrl);
urlConnection = url.openConnection();
InputStream is = urlConnection.getInputStream();
} catch(Exception e) {
e.printStackTrace();
sUrl_call_sucess_flag = sUrl + " URL Call failed";
}
%>
<html>
<head>
</head>
<body>
<p>URL Call<br>[<%=sUrl_call_sucess_flag%>]</p>
<p>service.call.url<br>[<%=System.getProperty("service.call.url")%>]</p>
</body>
</html>