anchor.diff:          latestversion = wikiContext.getPage();
       }
   
  -    String storedlink = HttpUtil.retrieveCookieValue( request, "link" );
  -    if( storedlink == null ) storedlink = "";
  -    
  -    pageContext.setAttribute( "link", storedlink, PageContext.REQUEST_SCOPE );
  -
  +    //
  +    //  Setup everything for the editors and possible preview.  We store everything in the
  +    //  session.
  +    //
  +    
  +    if( remember == null )
  +    {
  +        remember = (String)session.getAttribute("remember");
  +    }
  +
  +    if( remember == null ) remember = "false";
  +    
  +    session.setAttribute("remember",remember);
  +    
  +    if( author == null )
  +    {
  +        author = storedUser;
  +    }    
  +    if( author == null || author.length() == 0 ) author = "AnonymousCoward";
  +
  +    session.setAttribute("author",author);
  +    
  +    if( link == null )
  +    {
  +        link = HttpUtil.retrieveCookieValue( request, "link" );
  +        if( link == null ) link = "";
  +    }
  +    
  +    session.setAttribute( "link", link );
  +
  +    //
  +    //  Branch
  +    //
       log.debug("preview="+preview+", ok="+ok);
   
       if( ok != null )
       {
  -        log.info("Saving page "+pagereq+". User="+user+", host="+request.getRemoteAddr() );
  +        log.info("Saving page "+pagereq+". User="+storedUser+", host="+request.getRemoteAddr() );
   
           //  FIXME: I am not entirely sure if the JSP page is the
           //  best place to check for concurrent changes.  It certainly
  
positive.code:         //  Set author information
          //
  
          wikipage.setAuthor( user );
  
          StringBuffer pageText = new StringBuffer(wiki.getPureText( wikipage ));
  
  
negative.code:                               Long.toString( lastchange ),
                                PageContext.REQUEST_SCOPE );
  
      //  This is a hack to get the preview to work.
      pageContext.setAttribute( "comment", Boolean.TRUE, PageContext.REQUEST_SCOPE );
  	
      //
      //  Attempt to lock the page.
      //
      PageLock lock = wiki.getPageManager().lockPage( wikipage, 
                                                      storedUser );
  
      if( lock != null )
      {
  