anchor.diff:  <%@ page import="com.ecyrd.jspwiki.attachment.*" %>
   <%@ page import="java.util.*" %>
   <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  +<%@ page import="com.ecyrd.jspwiki.auth.*" %>
   <%@ page errorPage="/Error.jsp" %>
   <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
   
  
positive.code: %>
  
  <%
      String pagereq = wiki.safeGetParameter( request, "page" );
      if( pagereq == null || pagereq.length() == 0 )
          pagereq = wiki.getFrontPage();
      String userName = wiki.getUserName( request );
  
      NDC.push( wiki.getApplicationName() + ":Login.jsp"  );
  
      //WikiPage wikipage = wiki.getPage( pagereq );
  
      WikiContext wikiContext = new WikiContext( wiki, (WikiPage)null );
      wikiContext.setRequestContext( WikiContext.LOGIN );
  
      pageContext.setAttribute( WikiTagBase.ATTR_CONTEXT,
                                wikiContext,
                                PageContext.REQUEST_SCOPE );
  
      response.setContentType("text/html; charset="+wiki.getContentEncoding() );
  %>
  
negative.code: </head>
  
  <body class="login" bgcolor="#FFFFFF">
    <br />
    <br />
    <form action="<wiki:Variable var="baseURL"/>Login.jsp" accept-charset="UTF-8" method="POST" />
    <input type="hidden" name="page" value="<wiki:Variable var="pagename" />" />
    <div align="center">
      <table border="0" cellspacing="3" cellpadding="5" width="35%" bgcolor="#efefef" />
        <tr>
          <td colspan="2" bgcolor="#bfbfff">
            <div align="center">
              <h3>Welcome to <wiki:Variable var="applicationname"/></h3>
  
              <% if( action != null ) { %>
              <p>
              Unknown username or password.  Please try again.
              </p>
              <% } %>
            </div>
          </td>
        </tr>
        <tr>
          <td>Login:</td>
          <td><input type="text" name="uid" /></td>
        </tr>
        <tr>
          <td>Password:</td>
          <td><input type="password" name="passwd" /></td>
        </tr>
        <tr>
          <td colspan="2">
            <div align="center">
              <input type="submit" name="action" value="login" />
            </div>
          </td>
        </tr>
      </table>
    </div>
  </body>
  
  </html>
  