nutch界面部分的修改

来源:互联网 发布:风之教堂数据 编辑:程序博客网 时间:2024/05/19 17:24

在nutch界面部分的修改中,有些内容都是已经定义好的,不是所有的都要修改jsp源码即可实现

例如搜索页面的title,快照页文字等

按如下方法实现:

1、以中文页面为例:

修改:web-inf/classes/org/nutch/jsp/search-zh-properties

title = /u67e5

search = /u641c/u7d22
hits =  /u7b2c<b>{0}-{1}</b>/u9879 (/u5171/u6709 {2} /u9879/u67e5/u8be2/u7ed3/u679c):
cached = /u7f51
explain = /u8bc4/u5206/u8be6/u89e3
anchors = anchors
next = /u4e0b/u4e00/u9875
clustering = clustering
viewAsText = View as Plain Text

 

“=”后面的即为页面展示的内容,可以通过unicode中文互转工具进行转换。

2、修改源码部分:

cached.jsp  75行附近

<h2 style="{color:rgb(255,153,0)}"><i18n:message key="title"/></h2>

 

search.jsp 181行

<title><i18n:message key="title"/></title>

想添加自定义的内容就添加吧。