Index: src/web/jsp/text.jsp
===================================================================
--- src/web/jsp/text.jsp (revision 770025)
+++ src/web/jsp/text.jsp (working copy)
@@ -15,6 +15,8 @@
limitations under the License.
--%>
<%@ page
+ contentType="text/plain; charset=UTF-8"
+
session="false"
import="java.io.*"
@@ -34,38 +36,17 @@
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);
+ out.println( "Plain text cache of " + details.getValue("url") );
+ out.println();
+ out.flush();
String text = bean.getParseText(details).getText();
- if (text.trim().equals(""))
- text = null;
-
- // 20041005, xing
- // This "CharEncodingForConversion" thing is only pertinent to
- // html parser (plugin parse-html) in current nutch. None of
- // other parser plugins are into it. So we worry it later.
-
-%>
-<%= text %> --<% } else { %> -