### Eclipse Workspace Patch 1.0
#P branch-1.2
Index: src/web/jsp/text.jsp
===================================================================
--- src/web/jsp/text.jsp	(revision 1027060)
+++ src/web/jsp/text.jsp	(working copy)
@@ -16,15 +16,16 @@
 --%>
 <%@ page
   session="false"
-
+  contentType="text/html; charset=UTF-8"
   import="java.io.*"
   import="java.util.*"
 
   import="org.apache.nutch.searcher.*"
-  import="org.apache.nutch.parse.ParseText"
+  import="org.apache.nutch.parse.ParseData"
+  import="org.apache.nutch.metadata.Metadata"
+  import="org.apache.nutch.metadata.Nutch"
+  import="org.apache.nutch.util.NutchConfiguration"
   import="org.apache.hadoop.conf.Configuration"
-  import="org.apache.nutch.util.NutchConfiguration"
-
 %><%
 
   // show the content of a hit as plain text
@@ -34,12 +35,12 @@
   bean.LOG.info("text request from " + request.getRemoteAddr());
 
   Hit hit = new Hit(Integer.parseInt(request.getParameter("idx")),
-                    Integer.parseInt(request.getParameter("id")));
+                    request.getParameter("id"));
   HitDetails details = bean.getDetails(hit);
 
-  String text = bean.getParseText(details).getText();
-  if (text.trim().equals(""))
-    text = null;
+    String text = bean.getParseText(details).getText();
+    if (text.trim().equals(""))
+      text = null;
 
   // 20041005, xing
   // This "CharEncodingForConversion" thing is only pertinent to
@@ -55,15 +56,14 @@
 <%@ taglib uri="http://jakarta.apache.org/taglibs/i18n" prefix="i18n" %>
 <i18n:bundle baseName="org.nutch.jsp.text"/>
 <h2 style="{color: rgb(255, 153, 0)}"><i18n:message key="title"/></h2>
-
 <i18n:message key="note">
-  <i18n:messageArg value="<%=details.getValue("url")%>"/>
+  <i18n:messageArg value="<%=details.getValue(\"url\")%>"/>
 </i18n:message>
 
 <hr>
 
 <% if (text != null) {%>
-<pre>
+<pre width="100%">
 <%= text %>
 </pre>
 <% } else { %>
