Author: cutting
Date: Thu May  5 14:30:56 2005
New Revision: 168420

URL: http://svn.apache.org/viewcvs?rev=168420&view=rev
Log:
Fix a null pointer exception and a broken link.

Modified:
    incubator/nutch/trunk/src/web/jsp/more.jsp

Modified: incubator/nutch/trunk/src/web/jsp/more.jsp
URL: 
http://svn.apache.org/viewcvs/incubator/nutch/trunk/src/web/jsp/more.jsp?rev=168420&r1=168419&r2=168420&view=diff
==============================================================================
--- incubator/nutch/trunk/src/web/jsp/more.jsp (original)
+++ incubator/nutch/trunk/src/web/jsp/more.jsp Thu May  5 14:30:56 2005
@@ -44,9 +44,9 @@
 %>
 
 <% if (showMore) {
-    if (primaryType.equalsIgnoreCase("text")) { %>
+    if ("text".equalsIgnoreCase(primaryType)) { %>
     <br><font size=-1><nobr><%=contentType%> <%=contentLength%> 
<%=lastModified%></nobr></font>
 <%  } else { %>
-    <br><font size=-1><nobr><%=contentType%> <%=contentLength%> 
<%=lastModified%> - <a href="text.jsp?<%=id%>"><i18n:message 
key="viewAsText"/></a></nobr></font>
+    <br><font size=-1><nobr><%=contentType%> <%=contentLength%> 
<%=lastModified%> - <a href="../text.jsp?<%=id%>"><i18n:message 
key="viewAsText"/></a></nobr></font>
 <%  }
   } %>




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r 
_______________________________________________
Nutch-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-cvs

Reply via email to