anchor.diff:      {
           log.debug("Previewing "+pagereq);
           pageContext.forward( "Preview.jsp" );
  +    }
  +    else if( cancel != null )
  +    {
  +        log.debug("Cancelled editing "+pagereq);
  +        PageLock lock = (PageLock) session.getAttribute( "lock-"+pagereq );
  +
  +        if( lock != null )
  +        {
  +            wiki.getPageManager().unlockPage( lock );
  +            session.removeAttribute( "lock-"+pagereq );
  +        }
  +        response.sendRedirect( wiki.getViewURL(pagereq) );
  +        return;
       }
   
       log.info("Editing page "+pagereq+". User="+request.getRemoteUser()+", host="+request.getRemoteHost() );
  
positive.code:                               Long.toString( lastchange ),
                                PageContext.REQUEST_SCOPE );
  
      String contentPage = "templates/"+skin+"/EditTemplate.jsp";
  %>
  
  
negative.code: <%@ page import="org.apache.log4j.*" %>
  <%@ page import="com.ecyrd.jspwiki.*" %>
  <%@ page import="java.util.*,java.text.SimpleDateFormat" %>
  <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  <%@ page import="com.ecyrd.jspwiki.WikiProvider" %>
  <%@ page errorPage="/Error.jsp" %>
  