dlgjusoPopup.jsp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  3. <html>
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  6. <title>Insert title here</title>
  7. <%
  8. request.setCharacterEncoding("UTF-8"); //한글깨지면 주석제거
  9. //request.setCharacterEncoding("EUC-KR"); //해당시스템의 인코딩타입이 EUC-KR일경우에
  10. String inputYn = request.getParameter("inputYn");
  11. String roadFullAddr = request.getParameter("roadFullAddr");
  12. String roadAddrPart1 = request.getParameter("roadAddrPart1");
  13. String roadAddrPart2 = request.getParameter("roadAddrPart2");
  14. String engAddr = request.getParameter("engAddr");
  15. String jibunAddr = request.getParameter("jibunAddr");
  16. String zipNo = request.getParameter("zipNo");
  17. String addrDetail = request.getParameter("addrDetail");
  18. String admCd = request.getParameter("admCd");
  19. String rnMgtSn = request.getParameter("rnMgtSn");
  20. String bdMgtSn = request.getParameter("bdMgtSn");
  21. %>
  22. </head>
  23. <script language="javascript">
  24. function init(){
  25. var url = location.href;
  26. var confmKey = "U01TX0FVVEgyMDE3MDExMDE1MTIwMDE4MTk2";
  27. var resultType = "4"; // 도로명주소 검색결과 화면 출력내용, 1 : 도로명, 2 : 도로명+지번, 3 : 도로명+상세건물명, 4 : 도로명+지번+상세건물명
  28. var inputYn= "<%=inputYn%>";
  29. if(inputYn != "Y"){
  30. document.form.confmKey.value = confmKey;
  31. document.form.returnUrl.value = url;
  32. document.form.resultType.value = resultType;
  33. document.form.action="http://www.juso.go.kr/addrlink/addrLinkUrl.do"; //인터넷망
  34. document.form.submit();
  35. }else{
  36. opener.jusoCallBack("<%=roadFullAddr%>","<%=roadAddrPart1%>","<%=addrDetail%>","<%=roadAddrPart2%>","<%=engAddr%>","<%=jibunAddr%>","<%=zipNo%>", "<%=admCd%>", "<%=rnMgtSn%>", "<%=bdMgtSn%>");
  37. window.close();
  38. }
  39. }
  40. </script>
  41. <body onload="init();">
  42. <form id="form" name="form" method="post">
  43. <input type="hidden" id="confmKey" name="confmKey" value=""/>
  44. <input type="hidden" id="returnUrl" name="returnUrl" value=""/>
  45. <input type="hidden" id="resultType" name="resultType" value=""/>
  46. <!-- 해당시스템의 인코딩타입이 EUC-KR일경우에만 추가 START-->
  47. <!--
  48. <input type="hidden" id="encodingType" name="encodingType" value="EUC-KR"/>
  49. -->
  50. <!-- 해당시스템의 인코딩타입이 EUC-KR일경우에만 추가 END-->
  51. </form>
  52. </body>
  53. </html>