/jcg-andygene-web-archetype/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/views/login.jspx

http://jcg-andygene-web.googlecode.com/ · Unknown · 49 lines · 44 code · 5 blank · 0 comment · 0 complexity · 47dc46f7b96175cf9a40f6ddbdf77914 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <div id="body" dojoType="dijit.layout.ContentPane" region="center" splitter="true" xmlns:spring="http://www.springframework.org/tags" xmlns:fn="http://java.sun.com/jsp/jstl/functions" xmlns:c="http://java.sun.com/jsp/jstl/core" xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
  3. <jsp:directive.page contentType="text/html;charset=UTF-8" />
  4. <jsp:output omit-xml-declaration="yes" />
  5. <div id="loginformbody" dojoType="dijit.form.Form" region="center" splitter="false" style="text-align: center;position: absolute;top: 100px;left: 100px;width:200px;height:200px">
  6. <c:if test="${not empty param.login_error}">
  7. <div class="errors">
  8. <p>
  9. <spring:message code="security_login_unsuccessful" />
  10. <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
  11. .
  12. </p>
  13. </div>
  14. </c:if>
  15. <c:if test="${empty param.login_error}">
  16. <p>
  17. <spring:message code="security_login_message" />
  18. </p>
  19. </c:if>
  20. <spring:url value="/web/resources/j_spring_security_check" var="form_url" />
  21. <form name="f" action="${fn:escapeXml(form_url)}" method="POST">
  22. <table>
  23. <tr>
  24. <td>
  25. <strong><spring:message code="security_login_form_name" /></strong>
  26. </td>
  27. <td>
  28. <input id="j_username" type='text' name='j_username' style="width:150px" dojoType="dijit.form.TextBox" />
  29. </td>
  30. </tr>
  31. <tr>
  32. <td>
  33. <strong><spring:message code="security_login_form_password" /></strong>
  34. </td>
  35. <td>
  36. <input id="j_password" type='password' name='j_password' style="width:150px" dojoType="dijit.form.TextBox" />
  37. </td>
  38. </tr>
  39. </table>
  40. <input dojoType="dijit.form.Button" id="proceed" type="submit" value="submit" label="Submit"/>
  41. <input dojoType="dijit.form.Button" id="reset" type="reset" value="reset" label="Reset"/>
  42. </form>
  43. </div>
  44. </div>