xml_sign_on_result.jsp 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <%@ page contentType="text/html; charset=utf-8" %>
  2. <%@ page import="kr.co.hsnc.common.message.WAFMessage" %>
  3. <jsp:useBean id="ctx" class="com.udapsoft.waf.system.context.SessionContext" scope="session" />
  4. <%
  5. ctx.init(request, response);
  6. WAFMessage wafMessage = WAFMessage.getInstance();
  7. wafMessage.setLocale(ctx.getLocale());
  8. System.out.println("====================111");
  9. System.out.println("=ctx.getLocale():" + ctx.getLocale());
  10. boolean is_login = ctx.getBoolean("is_login");
  11. boolean is_exist_session = ctx.getBoolean("is_exist_session");
  12. String exist_session_ip = ctx.get("exist_session_ip");
  13. int login_pw_mod_period = ctx.getInt("login_pw_mod_period"); //암호화 비밀번호 기간
  14. int login_pw_encription = ctx.getInt("login_pw_encription"); //암호화 비밀번호 횟수
  15. String cv = ctx.get("cv");
  16. String portal_check = ctx.get("portal_check");
  17. int size_value = 4;
  18. %>
  19. <RESULT type="VALUEOBJECT">
  20. <REQUEST uri="<%= ctx.getRequestURI() %>" event="<%= ctx.getEvent() %>"/>
  21. <% if( is_login ) { %>
  22. <% if( login_pw_mod_period >= 0 ) { %>
  23. <SUCCESS value="pw_valid"><%= "패스워드 유효기간이 만료되었습니다." %></SUCCESS>
  24. <% } %>
  25. <% if( is_exist_session ) { %>
  26. <SUCCESS value="true"><![CDATA[<%= wafMessage.getMessage("Login.OK.Exist.Session") %>]]></SUCCESS>
  27. <% }
  28. else { %>
  29. <SUCCESS value="true"><![CDATA[<%= wafMessage.getMessage("Login.OK") %>]]></SUCCESS>
  30. <% } %>
  31. <DETAIL-MESSAGE><![CDATA[<%= cv %>]]></DETAIL-MESSAGE>
  32. <VALUE-OBJECT size="<%=size_value %>">
  33. <VALUE name="is_exist_session"><![CDATA[<%= is_exist_session %>]]></VALUE>
  34. <VALUE name="login_pw_mod_period"><![CDATA[<%= login_pw_mod_period %>]]></VALUE>
  35. <VALUE name="login_pw_encription"><![CDATA[<%= login_pw_encription %>]]></VALUE>
  36. <VALUE name="portal_check"><![CDATA[<%= portal_check %>]]></VALUE>
  37. </VALUE-OBJECT>
  38. <% }
  39. else { %>
  40. <% if( login_pw_encription == 0 ) { %>
  41. <SUCCESS value="pw_cnt"><%= "패스워드 5회 이상 틀리셨습니다. 관리자에게 문의해주시기 바랍니다." %></SUCCESS>
  42. <% }
  43. else { %>
  44. <%-- <SUCCESS value="false"><![CDATA[<%= wafMessage.getMessage("Login.Error") %>]]></SUCCESS> --%>
  45. <SUCCESS value="false"><%= wafMessage.getMessage("Login.Error") %></SUCCESS>
  46. <% } %>
  47. <VALUE-OBJECT size="1">
  48. <VALUE name="chk_head"><![CDATA[<%= "N" %>]]></VALUE>
  49. </VALUE-OBJECT>
  50. <% } %>
  51. </RESULT>