<%@ taglib uri="/hawtags" prefix="haw" %>
<!-- 
  HAWHAW example for (quite a stupid) password authentication
  Norbert Huffschmid
  $Date: 2007/12/05 22:10:57 $
-->
<haw:haw>
  <haw:deck title="Authenticate" align="center">

  <% if (request.getParameter("id") == null) { %>

    <haw:form action="<%= request.getRequestURL().toString() %>">
      <haw:text>Please enter some digits:</haw:text>
      <haw:input name="id" value="" label="Account" format="*N" size="4" maxlength="4"/>
      <haw:input name="pw" value="" label="Password" format="*N" size="4" maxlength="4" type="password"/>
      <haw:submit label="Submit"/>
    </haw:form>

  <% }
     else { %>

    <haw:text big="yes">Hello <%= request.getParameter("id") %>!</haw:text>
    <haw:text small="yes">Your password expires in 3 days!</haw:text>
 
  <% } %>

  </haw:deck>
</haw:haw>