<%@ include file="/includes/setup.inc" %>
<html>
  <head>
    <title>
      Struts Library Login
    </title>
    <link rel="stylesheet" type="text/css" href='<c:url value="/css/app.css"/>'>
  </head>
  <body>
    <h1>
      Struts Library Login
    </h1>
    <hr>
    In order to borrow or add books you must log into the Library application.
    <html:errors/>
    <%-- (1) Java code version of the LoginForm --%>
    <html:form action="/login" focus="username">
    <%-- (2) DynaValidatorForm version of the LoginForm
    <html:form action="/login" focus="username" onsubmit="return validateLoginForm(this);">
    --%>
      <table>
        <tr>
          <td>
            Username:
          </td>
          <td>
            <html:text property="username"/>
          </td>
        </tr>
        <tr>
          <td>
            Password:
          </td>
          <td>
            <html:password property="password" redisplay="false"/>
          </td>
        </tr>
      </table>
      <p>
        <html:submit/>
      </p>
    </html:form>
    <%-- (2) DynaValidatorForm version of the LoginForm
    <html:javascript formName="LoginForm"/>
     --%>
  </body>
</html>
