anchor.diff: -<%@ page import = "  javax.servlet.*, javax.servlet.http.*, java.io.*, org.apache.lucene.analysis.*, org.apache.lucene.document.*, org.apache.lucene.index.*, org.apache.lucene.search.*, org.apache.lucene.queryParser.*, org.apache.lucene.demo.*, org.apache.lucene.demo.html.Entities" %>
  +<%@ page import = "  javax.servlet.*, javax.servlet.http.*, java.io.*, org.apache.lucene.analysis.*, org.apache.lucene.document.*, org.apache.lucene.index.*, org.apache.lucene.search.*, org.apache.lucene.queryParser.*, org.apache.lucene.demo.*, org.apache.lucene.demo.html.Entities, java.net.URLEncoder" %>
   
   <%
   /*
           Author: Andrew C. Oliver, SuperLink Software, Inc. (acoliver2@users.sourceforge.net)
   
  -        This jsp page is deliberatly written in the horrble java directly embedded 
  -        in the page style for an easy and conceise demonstration of Lucene.
  +        This jsp page is deliberatly written in the horrible java directly embedded 
  +        in the page style for an easy and concise demonstration of Lucene.
           Due note...if you write pages that look like this...sooner or later
  -        you'll have a maintenance nightmere.  If you use jsps...use taglibs
  +        you'll have a maintenance nightmare.  If you use jsps...use taglibs
           and beans!  That being said, this should be acceptable for a small
           page demonstrating how one uses Lucene in a web app. 
   
  
positive.code:                         query = QueryParser.parse(queryString, "contents", analyzer); //parse the 
                  } catch (ParseException e) {                          //query and construct the Query
                                                                        //object
                                                                        //if its just "operator error"
                                                                        //send them a nice error HTML
                                                                        
  %>
                          <p>Error While parsing query: <%=e.getMessage()%></p>
  <%
                          error = true;                                 //don't bother with the rest of
                                                                        //the page
  
negative.code: <%                if ( (startindex + maxpage) < hits.length()) {   //if there are more results...display 
                                                                     //the more link
  
                          String moreurl="results.jsp?query=" + 
                                         URLEncoder.encode(queryString) +  //construct the "more" link
                                         "&amp;maxresults=" + maxpage + 
                                         "&amp;startat=" + (startindex + maxpage);
  %>
                  <tr>
                          <td></td><td><a href="<%=moreurl%>">More Results>></a></td>
  