anchor.diff:                                Long.toString( lastchange ),
                                 PageContext.REQUEST_SCOPE );
   
  +    PageLock lock = wiki.getPageManager().lockPage( wikipage, 
  +                                                    wiki.getValidUserName(request) );
  +
  +    session.setAttribute( "lock-"+pagereq, lock );
  +
       String contentPage = "templates/"+skin+"/EditTemplate.jsp";
   %>
   
  
positive.code:     {
          log.debug("Previewing "+pagereq);
          pageContext.forward( "Preview.jsp" );
      }
  
      log.info("Editing page "+pagereq+". User="+request.getRemoteUser()+", host="+request.getRemoteHost() );
  
negative.code:     String action  = request.getParameter("action");
      String ok      = request.getParameter("ok");
      String preview = request.getParameter("preview");
      String cancel  = request.getParameter("cancel");
  
      //
      //  Set the response type before we branch.
      //
  
      response.setContentType("text/html; charset="+wiki.getContentEncoding() );
      response.addHeader( "Cache-control", "max-age=0" );
      response.addDateHeader( "Expires", new Date().getTime() );
      response.addDateHeader( "Last-Modified", new Date().getTime() );
  
      //log.debug("Request character encoding="+request.getCharacterEncoding());
      //log.debug("Request content type+"+request.getContentType());
  