<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib tagdir="/WEB-INF/tags" prefix="st"%>
<%@taglib uri="/japano" prefix="jpn"%>
<%@taglib uri="/user" prefix="user"%>
<st:page title="login">
  <user:login id="formLogin">
    <dl>
      <dt>EMail</dt><dd><user:login.EMail/></dd>
      <dt>Password</dt><dd><user:login.password/></dd>
    </dl>
    <user:login.submit class="button" text="log in"/>
  </user:login>
  <div class="info">
    This example shows a simple login action. It is not really an example
    for securing access but an example for a simple form in which two
    fields a text and a password fields are used to drive an action.        
    <p>
    The sample session implementation includes a reference
    to a logged in User which is <code>null</code> by default.
        
    The possible users are defined statically in the User class.
    <p>
    ( <strong>Note:</strong> This is <em>not</em> the way one would
    implement user management in a real world application. Normally
    one would authenticate the user via a database or other authentication means).       
    <p>
    The login must be one of these accounts:
    <ul>
      <li> user@example.com , password: &quot;password&quot;</li>
      <li> user@example.net , password: &quot;password&quot;</li>
      <li> user@example.org , password: &quot;password&quot;</li>
    </ul>
    Sourcecode :
    <ul>
      <li><a href="login.jsp.html">Source Code of the login view</a></li>
      <li><a href="org/japanosample/action/Login.java.html">Source Code of the login action</a></li>
      <li><a href="org/japanosample/User.java.html">Source Code of the User class</a></li>
      <li><a href="org/japanosample/SampleSession.java.html">Source Code of the SampleSession class</a></li>
    </ul>
  </div>
</st:page>