app1, app2 분리
This commit is contained in:
45
tomcat/webapps/bussiness1/chl_mci.jsp
Executable file
45
tomcat/webapps/bussiness1/chl_mci.jsp
Executable file
@@ -0,0 +1,45 @@
|
||||
<%@ page contentType="text/html;charset=euc-kr" %>
|
||||
<%@ page import = "java.rmi.*,
|
||||
javax.naming.*,
|
||||
java.sql.*,
|
||||
javax.sql.*,
|
||||
java.io.*,
|
||||
java.net.*,
|
||||
java.util.*,
|
||||
exem.chl.generatecode"
|
||||
|
||||
%>
|
||||
<%
|
||||
|
||||
generatecode gencode = new generatecode();
|
||||
gencode.make_junmun_code();
|
||||
|
||||
URL url = null;
|
||||
URLConnection urlConnection = null;
|
||||
String sUrl = System.getProperty("service.call.url");
|
||||
//String sUrl = "http://10.10.52.10:8880/mci/mci_core.jsp"; //MCI 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>
|
||||
Reference in New Issue
Block a user