anchor.diff:      // If "r1" is null, then assume current version (= -1)
       // If "r2" is null, then assume the previous version (=current version-1)
   
  +    // FIXME: There is a set of unnecessary conversions here: InsertDiffTag
  +    //        does the String->int conversion anyway.
  +
       String srev1 = request.getParameter("r1");
       String srev2 = request.getParameter("r2");
   
  
positive.code:     response.setContentType("text/html; charset="+wiki.getContentEncoding() );
  %>
  
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
          "http://www.w3.org/TR/html4/loose.dtd">
  
  
  <HTML>
  
  <HEAD>
    <TITLE><%=wiki.getApplicationName()%>: Diff <%=pagereq%></TITLE>
    <META NAME="ROBOTS" CONTENT="NOINDEX">
    <%@ include file="cssinclude.js" %>
  </HEAD>
  
  <BODY BGCOLOR="#FFFFFF">
  
  <TABLE BORDER="0" CELLSPACING="8" width="95%">
  
    <TR>
      <TD CLASS="leftmenu" WIDTH="10%" VALIGN="top" NOWRAP="true">
         <%@ include file="templates/LeftMenu.jsp" %>
         <P>
         <%@ include file="templates/LeftMenuFooter.jsp" %>
      </TD>
  
      <TD CLASS="page" WIDTH="85%" VALIGN="top">
  
        <%@ include file="templates/PageHeader.jsp" %>
  
        <%
           if( wiki.pageExists( pagereq ) )
           {
               String diff = wiki.getDiff( pagereq, ver2, ver1 );
  
               if( diff.length() == 0 ) diff = "<I>No difference.</I>";
               %>
               Difference between revision <%=versionDescription1%> and <%=versionDescription2%>
               <P>
  <%=diff%>
               <%
           }
           else
           {
           %>
               This page does not exist.  Why don't you go and
               <wiki:EditLink>create it</wiki:EditLink>?
           <%
           }
        %>
  
        <P>
        Back to <wiki:LinkTo><wiki:PageName/></wiki:LinkTo>,
         or to the <wiki:PageInfoLink>Page History</wiki:PageInfoLink>.
         </P>
  
        <P><HR>
      </TD>
    </TR>
  
  </TABLE>
  
  </BODY>
  
  </HTML>
  
  <%
      NDC.pop();
  
negative.code: <%@ page import="org.apache.log4j.*" %>
  <%@ page import="com.ecyrd.jspwiki.*" %>
  <%@ page import="com.ecyrd.jspwiki.tags.WikiTagBase" %>
  <%@ page import="com.ecyrd.jspwiki.tags.InsertDiffTag" %>
  <%@ taglib uri="/WEB-INF/jspwiki.tld" prefix="wiki" %>
  
  <%! 
  