Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

add headers and reformat

Sami Sirenc04db90bb8ec
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/anchors.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/anchors.jsp
index 0f0215403..5d33196be 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/anchors.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/anchors.jsp
@@ -1,11 +1,27 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
<h3><fmt:message key="anchors.page">
- <fmt:param value="${nutchAnchors.url}" />
+ <fmt:param value="${nutchAnchors.url}" />
</fmt:message></h3>
<h3><fmt:message key="anchors.anchors" /></h3>
<ul>
- <c:forEach var="anchor" items="${nutchAnchors.anchors}">
- <li><c:out value="${anchor}" /></li>
- </c:forEach>
+ <c:forEach var="anchor" items="${nutchAnchors.anchors}">
+ <li><c:out value="${anchor}" /></li>
+ </c:forEach>
</ul>
<br />
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/cached.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/cached.jsp
index c9e336ad0..45a5384cd 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/cached.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/cached.jsp
@@ -1,28 +1,45 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
<c:if test="${isHtml}">
- <base href="<c:out value="${url}"/>">
+ <base href="<c:out value="${url}"/>">
</c:if>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-<h2 style="{color: rgb(255, 153, 0)}"><fmt:message key="cached.title" /></h2>
+<h2 style="{color: rgb(255, 153, 0)}"><fmt:message
+ key="cached.title" /></h2>
<h3><fmt:message key="cached.page">
- <fmt:param value="${url}" />
+ <fmt:param value="${url}" />
</fmt:message></h3>
<hr />
<c:choose>
- <c:when test="${isHtml}">
- <c:choose>
- <c:when test="${content!=null && content!=''}">
- <c:out value="${content}" escapeXml="false"/>
- </c:when>
- <c:otherwise>
- <fmt:message key="cached.noContent" />
- </c:otherwise>
- </c:choose>
- </c:when>
- <c:otherwise>
- <fmt:message key="cached.notHtml">
- <fmt:param value="${contentType}" />
- <fmt:param value="${id}" />
- </fmt:message>
- </c:otherwise>
+ <c:when test="${isHtml}">
+ <c:choose>
+ <c:when test="${content!=null && content!=''}">
+ <c:out value="${content}" escapeXml="false" />
+ </c:when>
+ <c:otherwise>
+ <fmt:message key="cached.noContent" />
+ </c:otherwise>
+ </c:choose>
+ </c:when>
+ <c:otherwise>
+ <fmt:message key="cached.notHtml">
+ <fmt:param value="${contentType}" />
+ <fmt:param value="${id}" />
+ </fmt:message>
+ </c:otherwise>
</c:choose>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/common.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/common.jsp
index d17541fda..c930c37ae 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/common.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/common.jsp
@@ -1,4 +1,20 @@
-<%@ page session="false" %>
-<%@ taglib prefix="tiles" uri="/tags/struts-tiles" %>
-<%@ taglib prefix="c" uri="/tags/jstl-c" %>
-<%@ taglib prefix="fmt" uri="/tags/jstl-fmt" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%@ page session="false"%>
+<%@ taglib prefix="tiles" uri="/tags/struts-tiles"%>
+<%@ taglib prefix="c" uri="/tags/jstl-c"%>
+<%@ taglib prefix="fmt" uri="/tags/jstl-fmt"%>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp
index d429578f0..73c39f5ab 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/decorator.jsp
@@ -1,3 +1,19 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
-<tiles:useAttribute name="decorator"/>
-<c:import url="${decorator}"/>
+<tiles:useAttribute name="decorator" />
+<c:import url="${decorator}" />
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/explain.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/explain.jsp
index 585e0b48f..31a610f70 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/explain.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/explain.jsp
@@ -1,6 +1,23 @@
-<%@ include file="common.jsp" %>
-<h3><fmt:message key="explain.page"/></h3>
-<c:out value="${hitDetails}" escapeXml="false"/>
-<h3><fmt:message key="explain.scoreForQuery"><fmt:param value="${query}"/></fmt:message>
-</h3>
-<c:out value="${explanation}" escapeXml="false"/>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%@ include file="common.jsp"%>
+<h3><fmt:message key="explain.page" /></h3>
+<c:out value="${hitDetails}" escapeXml="false" />
+<h3><fmt:message key="explain.scoreForQuery">
+ <fmt:param value="${query}" />
+</fmt:message></h3>
+<c:out value="${explanation}" escapeXml="false" />
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/footer.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/footer.jsp
index 8ddfe4a30..46a3594eb 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/footer.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/footer.jsp
@@ -1,11 +1,27 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
<div id="footer"><c:if test="${nutchSearch.isSearch=='true'}">
- <table bgcolor="3333ff" align="right">
- <tr>
- <td bgcolor="ff9900"><a
- href="opensearch?query=<c:out value="${nutchSearch.queryString}"/>"><font
- color="ffffff"><b>RSS</b> </font></a></td>
- </tr>
- </table>
+ <table bgcolor="3333ff" align="right">
+ <tr>
+ <td bgcolor="ff9900"><a
+ href="opensearch?query=<c:out value="${nutchSearch.queryString}"/>"><font
+ color="ffffff"><b>RSS</b> </font></a></td>
+ </tr>
+ </table>
</c:if> <a href="http://wiki.apache.org/nutch/FAQ"> <img border="0"
- src="img/poweredbynutch_01.gif"> </a></div>
+ src="img/poweredbynutch_01.gif"> </a></div>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/header.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/header.jsp
index c36d48e9e..312eb6291 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/header.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/header.jsp
@@ -1,17 +1,34 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
<tiles:useAttribute name="title" ignore="true"
- classname="java.lang.String" />
+ classname="java.lang.String" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<title><fmt:message key="${title}" /><c:if test="${nutchSearch!=null}"> - <c:out
- value="${nutchSearch.queryString}" />
+<title><fmt:message key="${title}" /><c:if
+ test="${nutchSearch!=null}"> - <c:out
+ value="${nutchSearch.queryString}" />
</c:if></title>
<link rel="icon" href="img/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<tiles:insert name="style" />
<c:if test="${nutchSearch!=null}">
- <link rel="alternate" type="application/rss+xml" title="RSS"
- href="opensearch?query=<c:out value="${nutchSearch.queryString}"/>" />
- <script type="text/javascript">
+ <link rel="alternate" type="application/rss+xml" title="RSS"
+ href="opensearch?query=<c:out value="${nutchSearch.queryString}"/>" />
+ <script type="text/javascript">
<!--
function queryfocus() { document.search.query.focus(); }
// -->
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/i18ncontent.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/i18ncontent.jsp
index fa6e6eddc..b18d68475 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/i18ncontent.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/i18ncontent.jsp
@@ -1,2 +1,18 @@
-<%@ include file="common.jsp" %>
-<c:out value="${content}" escapeXml="false"/>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%@ include file="common.jsp"%>
+<c:out value="${content}" escapeXml="false" />
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/navigate.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/navigate.jsp
index 0d547676e..20f29a373 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/navigate.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/navigate.jsp
@@ -1,21 +1,32 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
-<div id="navigation">
-<c:if test="${nutchSearch.hasNextPage==true}">
- <form name="search" action="search.do" method="get"><input
- type="submit" value="<fmt:message key="search.next"/>">
- <c:forEach var="urlParameter" items="${nutchSearch.formProperties}">
- <input type="hidden"
- name="<c:out value="${urlParameter.key}"/>"
- value="<c:out value="${urlParameter.value}"/>" />
- </c:forEach></form>
-</c:if>
-<c:if test="${nutchSearch.showAllHits==true}">
- <form name="search" action="search.do" method="get"><input
- type="submit" value="<fmt:message key="search.showAllHits"/>">
- <c:forEach var="urlParameter" items="${nutchSearch.formProperties}">
- <input type="hidden"
- name="<c:out value="${urlParameter.key}"/>"
- value="<c:out value="${urlParameter.value}"/>" />
- </c:forEach></form>
-</c:if>
-</div>
\ No newline at end of file
+<div id="navigation"><c:if test="${nutchSearch.hasNextPage==true}">
+ <form name="search" action="search.do" method="get"><input
+ type="submit" value="<fmt:message key="search.next"/>"> <c:forEach
+ var="urlParameter" items="${nutchSearch.formProperties}">
+ <input type="hidden" name="<c:out value="${urlParameter.key}"/>"
+ value="<c:out value="${urlParameter.value}"/>" />
+ </c:forEach></form>
+</c:if> <c:if test="${nutchSearch.showAllHits==true}">
+ <form name="search" action="search.do" method="get"><input
+ type="submit" value="<fmt:message key="search.showAllHits"/>">
+ <c:forEach var="urlParameter" items="${nutchSearch.formProperties}">
+ <input type="hidden" name="<c:out value="${urlParameter.key}"/>"
+ value="<c:out value="${urlParameter.value}"/>" />
+ </c:forEach></form>
+</c:if></div>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/noResults.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/noResults.jsp
index c95f5bf4d..c70358d8e 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/noResults.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/noResults.jsp
@@ -1,4 +1,20 @@
-<div id="noResults"><%@ include file="common.jsp"%>
-<fmt:message
- key="search.noResults"><fmt:param value="${nutchSearch.htmlQueryString}"/></fmt:message>
-</div>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<div id="noResults"><%@ include file="common.jsp"%>
+<fmt:message key="search.noResults">
+ <fmt:param value="${nutchSearch.htmlQueryString}" />
+</fmt:message></div>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/preferences.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/preferences.jsp
index 2ebc6e3ef..1f0fa8330 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/preferences.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/preferences.jsp
@@ -1,16 +1,33 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
-<tiles:importAttribute/>
+<tiles:importAttribute />
<form action="preferencesSave.do"><fmt:message
- key="preferences.ui.language" /> <select name="L">
- <c:forEach var="language" items="${languages}">
- <option value="<c:out value="${language}"/>"><fmt:message
- key="${language }" /></option>
- </c:forEach>
+ key="preferences.ui.language" /> <select name="L">
+ <c:forEach var="language" items="${languages}">
+ <option value="<c:out value="${language}"/>"><fmt:message
+ key="${language }" /></option>
+ </c:forEach>
</select> <fmt:message key="preferences.ui.language.info" /> <br />
<fmt:message key="preferences.numResults" /> <select name="R">
- <c:forEach var="hits" items="${hitsPerPage}">
- <option value="<c:out value="${hits}"/>"><c:out value="${hits}" /></option>
- </c:forEach>
+ <c:forEach var="hits" items="${hitsPerPage}">
+ <option value="<c:out value="${hits}"/>"><c:out
+ value="${hits}" /></option>
+ </c:forEach>
</select> <fmt:message key="preferences.numResults.info" /> <br />
<input type="submit" value="<fmt:message key="preferences.submit"/>" />
</form>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/results.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/results.jsp
index 336db541d..a8152cbf9 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/results.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/results.jsp
@@ -1,17 +1,40 @@
-<%@ include file="common.jsp" %>
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
+<%@ include file="common.jsp"%>
<c:forEach var="hit" items="${nutchSearch.results}">
- <c:set var="hit" scope="request" value="${hit}"/>
- <b><a href="<c:out value="${hit.url}"/>"><c:out value="${hit.title}"/></a></b><br/>
- <tiles:insert name="more" />
- <c:out value="${hit.summary}" escapeXml="false"/>
- <br>
- <span class="url"><c:out value="${hit.encodedUrl}"/></span>
- (<a href="cached.do?<c:out value="${hit.id}"/>"><fmt:message key="search.cached"/></a>)
- (<a href="explain.do?<c:out value="${hit.id}"/>&query=<c:out value="${hit.urlEncodedQuery}"/>"><fmt:message key="search.explain"/></a>)
- (<a href="anchors.do?<c:out value="${hit.id}"/>"><fmt:message key="search.anchors"/></a>)
+ <c:set var="hit" scope="request" value="${hit}" />
+ <b><a href="<c:out value="${hit.url}"/>"><c:out
+ value="${hit.title}" /></a></b>
+ <br />
+ <tiles:insert name="more" />
+ <c:out value="${hit.summary}" escapeXml="false" />
+ <br>
+ <span class="url"><c:out value="${hit.encodedUrl}" /></span>
+ (<a href="cached.do?<c:out value="${hit.id}"/>"><fmt:message
+ key="search.cached" /></a>)
+ (<a
+ href="explain.do?<c:out value="${hit.id}"/>&query=<c:out value="${hit.urlEncodedQuery}"/>"><fmt:message
+ key="search.explain" /></a>)
+ (<a href="anchors.do?<c:out value="${hit.id}"/>"><fmt:message
+ key="search.anchors" /></a>)
<c:if test="${hit.hasMore==true}">
- (<a href="search.do?<c:out value="${hit.moreUrl}"/>"><fmt:message key="search.moreFrom"/>
- <c:out value="${hit.dedupValue}"/></a>)
+ (<a href="search.do?<c:out value="${hit.moreUrl}"/>"><fmt:message
+ key="search.moreFrom" /> <c:out value="${hit.dedupValue}" /></a>)
</c:if>
-<br/><br/>
+ <br />
+ <br />
</c:forEach>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/search.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/search.jsp
index e079dd10d..23c9149e8 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/search.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/search.jsp
@@ -1,33 +1,49 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@ include file="common.jsp"%>
<c:choose>
- <c:when test="${nutchSearch.isSearch}">
- <form name="search" action="search.do" method="get"><input
- name="query" size="44"
- value="<c:out value="${nutchSearch.queryString}"/>"> <input
- type="submit" value="<fmt:message key="search.search"/>"> <a
- href="help.do"><fmt:message key="search.help" /></a></form>
- <c:choose>
- <c:when test="${nutchSearch.hasResults}">
- <fmt:message key="search.hits">
- <fmt:param value="${nutchSearch.resultInfo[0]}" />
- <fmt:param value="${nutchSearch.resultInfo[1]}" />
- <fmt:param value="${nutchSearch.resultInfo[2]}" />
- <fmt:param value="${nutchSearch.resultInfo[3]}" />
- </fmt:message>
- <br />
- <tiles:insert name="results" flush="true" />
- <!-- optional tile -->
- <tiles:insert definition="cluster" ignore="true"/>
- <tiles:insert name="navigate" />
- </c:when>
- <c:otherwise>
- <tiles:insert name="noResults" />
- </c:otherwise>
- </c:choose>
- </c:when>
- <c:otherwise>
- <tiles:insert name="i18nComponent">
- <tiles:put name="basePage" value="/search.html" />
- </tiles:insert>
- </c:otherwise>
+ <c:when test="${nutchSearch.isSearch}">
+ <form name="search" action="search.do" method="get"><input
+ name="query" size="44"
+ value="<c:out value="${nutchSearch.queryString}"/>"> <input
+ type="submit" value="<fmt:message key="search.search"/>"> <a
+ href="help.do"><fmt:message key="search.help" /></a></form>
+ <c:choose>
+ <c:when test="${nutchSearch.hasResults}">
+ <fmt:message key="search.hits">
+ <fmt:param value="${nutchSearch.resultInfo[0]}" />
+ <fmt:param value="${nutchSearch.resultInfo[1]}" />
+ <fmt:param value="${nutchSearch.resultInfo[2]}" />
+ <fmt:param value="${nutchSearch.resultInfo[3]}" />
+ </fmt:message>
+ <br />
+ <tiles:insert name="results" flush="true" />
+ <!-- optional tile -->
+ <tiles:insert definition="cluster" ignore="true" />
+ <tiles:insert name="navigate" />
+ </c:when>
+ <c:otherwise>
+ <tiles:insert name="noResults" />
+ </c:otherwise>
+ </c:choose>
+ </c:when>
+ <c:otherwise>
+ <tiles:insert name="i18nComponent">
+ <tiles:put name="basePage" value="/search.html" />
+ </tiles:insert>
+ </c:otherwise>
</c:choose>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/jsp/template.jsp b/contrib/web2/src/main/webapp/WEB-INF/jsp/template.jsp
index 6da490460..00bfd7089 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/jsp/template.jsp
+++ b/contrib/web2/src/main/webapp/WEB-INF/jsp/template.jsp
@@ -1,14 +1,30 @@
+<%--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+--%>
<%@page contentType="text/html; charset=utf-8" session="false"%>
<%@ include file="common.jsp"%>
<html lang="<fmt:message key="lang"/>">
<head>
<tiles:insert name="header" flush="true">
- <tiles:put name="title" beanName="title" />
+ <tiles:put name="title" beanName="title" />
</tiles:insert>
</head>
<body onLoad="queryfocus();">
-<c:out default="" value="${headerContent}" escapeXml="false"/>
-<tiles:insert name="pageBody" flush="true"/>
+<c:out default="" value="${headerContent}" escapeXml="false" />
+<tiles:insert name="pageBody" flush="true" />
<tiles:insert name="footer" />
</body>
</html>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/res/style.css b/contrib/web2/src/main/webapp/WEB-INF/res/style.css
index cb79fbe86..c9732d1a5 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/res/style.css
+++ b/contrib/web2/src/main/webapp/WEB-INF/res/style.css
@@ -1,14 +1,75 @@
-.menuTd {background-color: #F9F7F4; height: 25; onMouseOver: this.style.backgroundColor='#ECE5DC';}
-.menuTdhover {background-color: #ECE5DC; height: 25; onMouseOver: this.style.backgroundColor='#ECE5DC';}
-.menuEntry { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-decoration: none}
-.body {background-color: #F9F7F4;}
-.bodytext { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; text-decoration: none}
-.title { font-family: Arial, Helvetica, sans-serif; font-size: 26px; color: #FF9900; text-decoration: none}
-.intro { font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #FF9900; text-decoration: none}
-.orangeTd {background-color: #FF9900}
-ul {list-style-image: url(../img/reiter/ul.gif)}
-h3 {font-family: Arial, Helvetica, sans-serif; font-size: 16px; color: #000000;}
-h4 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; color: #000000;}
-.url {color: #996600;}
-.highlight {font-weight: bold;}
-.ellipsis {font-weight: bold;}
+.menuTd {
+ background-color: #F9F7F4;
+ height: 25;
+ onMouseOver: this . style . backgroundColor = '#ECE5DC';
+}
+
+.menuTdhover {
+ background-color: #ECE5DC;
+ height: 25;
+ onMouseOver: this . style . backgroundColor = '#ECE5DC';
+}
+
+.menuEntry {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ text-decoration: none
+}
+
+.body {
+ background-color: #F9F7F4;
+}
+
+.bodytext {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #000000;
+ text-decoration: none
+}
+
+.title {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 26px;
+ color: #FF9900;
+ text-decoration: none
+}
+
+.intro {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ color: #FF9900;
+ text-decoration: none
+}
+
+.orangeTd {
+ background-color: #FF9900
+}
+
+ul {
+ list-style-image: url(../img/reiter/ul.gif)
+}
+
+h3 {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 16px;
+ color: #000000;
+}
+
+h4 {
+ font-family: Arial, Helvetica, sans-serif;
+ font-size: 14px;
+ color: #000000;
+}
+
+.url {
+ color: #996600;
+}
+
+.highlight {
+ font-weight: bold;
+}
+
+.ellipsis {
+ font-weight: bold;
+}
\ No newline at end of file
diff --git a/contrib/web2/src/main/webapp/WEB-INF/struts-config.xml b/contrib/web2/src/main/webapp/WEB-INF/struts-config.xml
index e3bbaf699..62e2b5a3c 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/struts-config.xml
+++ b/contrib/web2/src/main/webapp/WEB-INF/struts-config.xml
@@ -1,26 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"dtd/struts-config_1_2.dtd">
<struts-config>
- <form-beans />
- <!-- =================================== Action Mapping Definitions -->
- <action-mappings>
- <action path="/*" type="org.apache.struts.actions.ForwardAction"
- parameter="{1}Page" />
- </action-mappings>
- <!-- ===================================== Controller Configuration -->
- <!-- Own request processor required because the default one creates a new
- session - a thing we really don't want -->
- <controller
- processorClass="org.apache.nutch.webapp.tiles.NutchRequestProcessor" />
- <!-- ================================ Message Resources Definitions -->
- <message-resources parameter="org.nutch.jsp.resources" null="false" />
- <plug-in className="org.apache.struts.tiles.TilesPlugin">
- <set-property property="definitions-config"
- value="/WEB-INF/tiles-defs.xml" />
- <set-property property="moduleAware" value="true" />
- <set-property property="definitions-parser-validate"
- value="false" />
- </plug-in>
+ <form-beans />
+ <!-- =================================== Action Mapping Definitions -->
+ <action-mappings>
+ <action path="/*" type="org.apache.struts.actions.ForwardAction"
+ parameter="{1}Page" />
+ </action-mappings>
+ <!-- ===================================== Controller Configuration -->
+ <!-- Own request processor required because the default one creates a new
+ session - a thing we really don't want -->
+ <controller
+ processorClass="org.apache.nutch.webapp.tiles.NutchRequestProcessor" />
+ <!-- ================================ Message Resources Definitions -->
+ <message-resources parameter="org.nutch.jsp.resources" null="false" />
+ <plug-in className="org.apache.struts.tiles.TilesPlugin">
+ <set-property property="definitions-config"
+ value="/WEB-INF/tiles-defs.xml" />
+ <set-property property="moduleAware" value="true" />
+ <set-property property="definitions-parser-validate" value="false" />
+ </plug-in>
</struts-config>
diff --git a/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml b/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml
index a71fe7685..65c641f02 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml
+++ b/contrib/web2/src/main/webapp/WEB-INF/tiles-defs.xml
@@ -1,139 +1,156 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "dtd/tiles-config_1_1.dtd">
<tiles-definitions>
- <definition name="stylable">
- <put name="style" value="/include/style.html" />
- </definition>
-
- <definition name="masterlayout" extends="stylable"
- path="/WEB-INF/jsp/template.jsp">
- </definition>
-
- <definition name="template" extends="masterlayout">
- <put name="title" value="title" />
- <put name="header" value=".header" />
- <put name="footer" value="footer" />
- </definition>
-
- <!-- Footer -->
- <definition name="footer" path="/WEB-INF/jsp/footer.jsp"/>
-
- <!-- Search -->
- <definition name="searchPage" extends="template"
- controllerClass="org.apache.nutch.webapp.controller.SearchController">
- <put name="title" value="search.title" />
- <put name="pageBody" value="search" />
- </definition>
- <definition name="search" path="/WEB-INF/jsp/search.jsp"/>
-
- <!-- Cached -->
- <definition name="cachedPage" path="/WEB-INF/jsp/cached.jsp"
- controllerClass="org.apache.nutch.webapp.controller.CachedController">
- <put name="title" value="cached.title" />
- </definition>
-
- <!-- Explain -->
- <definition name="explainPage" extends="template"
- controllerClass="org.apache.nutch.webapp.controller.ExplainController">
- <put name="pageBody" value="explain" />
- <put name="title" value="explain.title" />
- </definition>
- <definition name="explain" path="/WEB-INF/jsp/explain.jsp"/>
-
- <!-- Anchors -->
- <definition name="anchorsPage" extends="template"
- controllerClass="org.apache.nutch.webapp.controller.AnchorsController">
- <put name="pageBody" value="anchors" />
- <put name="title" value="anchors.title" />
- </definition>
- <definition name="anchors" path="/WEB-INF/jsp/anchors.jsp"/>
-
- <!-- Search results -->
- <definition name="results" path="/WEB-INF/jsp/results.jsp">
- </definition>
-
- <!-- Search result navigation -->
- <definition name="navigate" path="/WEB-INF/jsp/navigate.jsp" />
-
- <definition name=".header" extends="stylable"
- path="/WEB-INF/jsp/header.jsp"
- controllerClass="org.apache.nutch.webapp.controller.I18NPageController" >
- <put name="basePage" content="/include/header.html" />
- <put name="attrName" content="headerContent" />
- </definition>
-
- <!-- Localized pages (help, about,...) -->
- <definition name="localizedPage" extends="template"
- controllerClass="org.apache.nutch.webapp.controller.I18NPageController">
- <put name="pageBody" value="localized" />
- </definition>
- <definition name="localized" path="/WEB-INF/jsp/i18ncontent.jsp"/>
-
- <!-- Help -->
- <definition name="helpPage" extends="localizedPage">
- <put name="basePage" value="/help.html" />
- <put name="title" value="help.title" />
- </definition>
-
- <!-- About -->
- <definition name="aboutPage" extends="localizedPage">
- <put name="basePage" value="/about.html" />
- </definition>
-
- <!-- No Results -->
- <definition name="noResults" path="/WEB-INF/jsp/noResults.jsp" />
-
- <!-- Loclaized component -->
- <definition name="i18nComponent" path="/WEB-INF/jsp/i18ncontent.jsp"
- controllerClass="org.apache.nutch.webapp.controller.I18NPageController">
- </definition>
-
- <!-- Preferences -->
- <definition name="preferencesPage" extends="template"
- controllerClass="org.apache.nutch.webapp.controller.PreferencesController">
- <put name="title" value="preferences.title" />
- <put name="action" value="edit" />
- <put name="pageBody" value="preferences" />
- </definition>
+ <definition name="stylable">
+ <put name="style" value="/include/style.html" />
+ </definition>
+
+ <definition name="masterlayout" extends="stylable"
+ path="/WEB-INF/jsp/template.jsp">
+ </definition>
+
+ <definition name="template" extends="masterlayout">
+ <put name="title" value="title" />
+ <put name="header" value=".header" />
+ <put name="footer" value="footer" />
+ </definition>
+
+ <!-- Footer -->
+ <definition name="footer" path="/WEB-INF/jsp/footer.jsp" />
+
+ <!-- Search -->
+ <definition name="searchPage" extends="template"
+ controllerClass="org.apache.nutch.webapp.controller.SearchController">
+ <put name="title" value="search.title" />
+ <put name="pageBody" value="search" />
+ </definition>
+ <definition name="search" path="/WEB-INF/jsp/search.jsp" />
+
+ <!-- Cached -->
+ <definition name="cachedPage" path="/WEB-INF/jsp/cached.jsp"
+ controllerClass="org.apache.nutch.webapp.controller.CachedController">
+ <put name="title" value="cached.title" />
+ </definition>
+
+ <!-- Explain -->
+ <definition name="explainPage" extends="template"
+ controllerClass="org.apache.nutch.webapp.controller.ExplainController">
+ <put name="pageBody" value="explain" />
+ <put name="title" value="explain.title" />
+ </definition>
+ <definition name="explain" path="/WEB-INF/jsp/explain.jsp" />
+
+ <!-- Anchors -->
+ <definition name="anchorsPage" extends="template"
+ controllerClass="org.apache.nutch.webapp.controller.AnchorsController">
+ <put name="pageBody" value="anchors" />
+ <put name="title" value="anchors.title" />
+ </definition>
+ <definition name="anchors" path="/WEB-INF/jsp/anchors.jsp" />
+
+ <!-- Search results -->
+ <definition name="results" path="/WEB-INF/jsp/results.jsp">
+ </definition>
+
+ <!-- Search result navigation -->
+ <definition name="navigate" path="/WEB-INF/jsp/navigate.jsp" />
+
+ <definition name=".header" extends="stylable"
+ path="/WEB-INF/jsp/header.jsp"
+ controllerClass="org.apache.nutch.webapp.controller.I18NPageController">
+ <put name="basePage" content="/include/header.html" />
+ <put name="attrName" content="headerContent" />
+ </definition>
+
+ <!-- Localized pages (help, about,...) -->
+ <definition name="localizedPage" extends="template"
+ controllerClass="org.apache.nutch.webapp.controller.I18NPageController">
+ <put name="pageBody" value="localized" />
+ </definition>
+ <definition name="localized" path="/WEB-INF/jsp/i18ncontent.jsp" />
+
+ <!-- Help -->
+ <definition name="helpPage" extends="localizedPage">
+ <put name="basePage" value="/help.html" />
+ <put name="title" value="help.title" />
+ </definition>
+
+ <!-- About -->
+ <definition name="aboutPage" extends="localizedPage">
+ <put name="basePage" value="/about.html" />
+ </definition>
+
+ <!-- No Results -->
+ <definition name="noResults" path="/WEB-INF/jsp/noResults.jsp" />
+
+ <!-- Loclaized component -->
+ <definition name="i18nComponent" path="/WEB-INF/jsp/i18ncontent.jsp"
+ controllerClass="org.apache.nutch.webapp.controller.I18NPageController">
+ </definition>
+
+ <!-- Preferences -->
+ <definition name="preferencesPage" extends="template"
+ controllerClass="org.apache.nutch.webapp.controller.PreferencesController">
+ <put name="title" value="preferences.title" />
+ <put name="action" value="edit" />
+ <put name="pageBody" value="preferences" />
+ </definition>
<definition name="preferences" page="/WEB-INF/jsp/preferences.jsp">
- <putList name="languages">
- <add value="ca"/>
- <add value="de"/>
- <add value="en"/>
- <add value="es"/>
- <add value="fi"/>
- <add value="fr"/>
- <add value="hu"/>
- <add value="ms"/>
- <add value="nl"/>
- <add value="pl"/>
- <add value="pt"/>
- <add value="sh"/>
- <add value="sr"/>
- <add value="sv"/>
- <add value="th"/>
- <add value="zh"/>
- </putList>
- <putList name="hitsPerPage">
- <add value="10"/>
- <add value="20"/>
- <add value="50"/>
- </putList>
- </definition>
-
- <definition name="preferencesSavePage" extends="preferencesPage">
- <put name="action" value="save" />
- </definition>
-
- <!--
- Decorated definition can be used to split the logic and ui configuration apart so that
- one at a time can be changed
-
- The layout (view) can be selected with attribute named "decorator"
- -->
- <definition name="decoratedDefinition" path="/WEB-INF/jsp/decorator.jsp">
- <put name="decorator" value="/WEB-INF/jsp/footer.jsp"/>
- </definition>
-
+ <putList name="languages">
+ <add value="ca" />
+ <add value="de" />
+ <add value="en" />
+ <add value="es" />
+ <add value="fi" />
+ <add value="fr" />
+ <add value="hu" />
+ <add value="ms" />
+ <add value="nl" />
+ <add value="pl" />
+ <add value="pt" />
+ <add value="sh" />
+ <add value="sr" />
+ <add value="sv" />
+ <add value="th" />
+ <add value="zh" />
+ </putList>
+ <putList name="hitsPerPage">
+ <add value="10" />
+ <add value="20" />
+ <add value="50" />
+ </putList>
+ </definition>
+
+ <definition name="preferencesSavePage" extends="preferencesPage">
+ <put name="action" value="save" />
+ </definition>
+
+ <!--
+ Decorated definition can be used to split the logic and ui configuration apart so that
+ one at a time can be changed
+
+ The layout (view) can be selected with attribute named "decorator"
+ -->
+ <definition name="decoratedDefinition"
+ path="/WEB-INF/jsp/decorator.jsp">
+ <put name="decorator" value="/WEB-INF/jsp/footer.jsp" />
+ </definition>
+
</tiles-definitions>
\ No newline at end of file
diff --git a/contrib/web2/src/main/webapp/WEB-INF/tld/struts-tiles.tld b/contrib/web2/src/main/webapp/WEB-INF/tld/struts-tiles.tld
index 657334ea9..b5e294fbc 100644
--- a/contrib/web2/src/main/webapp/WEB-INF/tld/struts-tiles.tld
+++ b/contrib/web2/src/main/webapp/WEB-INF/tld/struts-tiles.tld
@@ -1,344 +1,338 @@
<?xml version="1.0" encoding="UTF-8"?>
-
-
-
-
-
-
-
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" "http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd">
<taglib>
-<tlibversion>1.2</tlibversion>
-<jspversion>1.1</jspversion>
-<shortname>tiles</shortname>
-<uri>http://struts.apache.org/tags-tiles</uri>
-<tag>
-<name>insert</name>
-<tagclass>org.apache.struts.taglib.tiles.InsertTag</tagclass>
-<bodycontent>JSP</bodycontent>
-<attribute>
-<name>template</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>component</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>page</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>definition</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>attribute</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>name</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanName</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanProperty</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanScope</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>flush</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>ignore</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>role</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>controllerUrl</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>controllerClass</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>definition</name>
-<tagclass>org.apache.struts.taglib.tiles.DefinitionTag</tagclass>
-<bodycontent>JSP</bodycontent>
-<attribute>
-<name>id</name>
-<required>true</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>scope</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>template</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>page</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>role</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>extends</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>put</name>
-<tagclass>org.apache.struts.taglib.tiles.PutTag</tagclass>
-<bodycontent>JSP</bodycontent>
-<attribute>
-<name>name</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>value</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>content</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>direct</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>type</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanName</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanProperty</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanScope</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>role</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>putList</name>
-<tagclass>org.apache.struts.taglib.tiles.PutListTag</tagclass>
-<bodycontent>JSP</bodycontent>
-<attribute>
-<name>name</name>
-<required>true</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>add</name>
-<tagclass>org.apache.struts.taglib.tiles.AddTag</tagclass>
-<bodycontent>JSP</bodycontent>
-<attribute>
-<name>value</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>content</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>direct</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>type</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanName</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanProperty</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>beanScope</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>role</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>get</name>
-<tagclass>org.apache.struts.taglib.tiles.GetTag</tagclass>
-<bodycontent>empty</bodycontent>
-<attribute>
-<name>name</name>
-<required>true</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>ignore</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>flush</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>role</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>getAsString</name>
-<tagclass>org.apache.struts.taglib.tiles.GetAttributeTag</tagclass>
-<bodycontent>empty</bodycontent>
-<attribute>
-<name>name</name>
-<required>true</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>ignore</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>role</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>useAttribute</name>
-<tagclass>org.apache.struts.taglib.tiles.UseAttributeTag</tagclass>
-<teiclass>org.apache.struts.taglib.tiles.UseAttributeTei</teiclass>
-<bodycontent>empty</bodycontent>
-<attribute>
-<name>id</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>classname</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>scope</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>name</name>
-<required>true</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>ignore</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>importAttribute</name>
-<tagclass>org.apache.struts.taglib.tiles.ImportAttributeTag</tagclass>
-<bodycontent>empty</bodycontent>
-<attribute>
-<name>name</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-<attribute>
-<name>scope</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>ignore</name>
-<required>false</required>
-<rtexprvalue>true</rtexprvalue>
-</attribute>
-</tag>
-<tag>
-<name>initComponentDefinitions</name>
-<tagclass>org.apache.struts.taglib.tiles.InitDefinitionsTag</tagclass>
-<bodycontent>empty</bodycontent>
-<attribute>
-<name>file</name>
-<required>true</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-<attribute>
-<name>classname</name>
-<required>false</required>
-<rtexprvalue>false</rtexprvalue>
-</attribute>
-</tag>
+ <tlibversion>1.2</tlibversion>
+ <jspversion>1.1</jspversion>
+ <shortname>tiles</shortname>
+ <uri>http://struts.apache.org/tags-tiles</uri>
+ <tag>
+ <name>insert</name>
+ <tagclass>org.apache.struts.taglib.tiles.InsertTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <attribute>
+ <name>template</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>component</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>page</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>definition</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>attribute</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanName</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanProperty</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanScope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>flush</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>ignore</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>role</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>controllerUrl</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>controllerClass</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>definition</name>
+ <tagclass>org.apache.struts.taglib.tiles.DefinitionTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>template</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>page</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>role</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>extends</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>put</name>
+ <tagclass>org.apache.struts.taglib.tiles.PutTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>content</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>direct</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanName</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanProperty</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanScope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>role</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>putList</name>
+ <tagclass>org.apache.struts.taglib.tiles.PutListTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>add</name>
+ <tagclass>org.apache.struts.taglib.tiles.AddTag</tagclass>
+ <bodycontent>JSP</bodycontent>
+ <attribute>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>content</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>direct</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanName</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanProperty</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>beanScope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>role</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>get</name>
+ <tagclass>org.apache.struts.taglib.tiles.GetTag</tagclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>ignore</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>flush</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>role</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>getAsString</name>
+ <tagclass>org.apache.struts.taglib.tiles.GetAttributeTag</tagclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>ignore</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>role</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>useAttribute</name>
+ <tagclass>org.apache.struts.taglib.tiles.UseAttributeTag</tagclass>
+ <teiclass>org.apache.struts.taglib.tiles.UseAttributeTei</teiclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>id</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>classname</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>ignore</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>importAttribute</name>
+ <tagclass>
+ org.apache.struts.taglib.tiles.ImportAttributeTag
+ </tagclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>name</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>ignore</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+ <tag>
+ <name>initComponentDefinitions</name>
+ <tagclass>
+ org.apache.struts.taglib.tiles.InitDefinitionsTag
+ </tagclass>
+ <bodycontent>empty</bodycontent>
+ <attribute>
+ <name>file</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <name>classname</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
</taglib>
-
-
-
diff --git a/contrib/web2/src/main/webapp/WEB-INF/web.xml b/contrib/web2/src/main/webapp/WEB-INF/web.xml
index a54657924..3888055e8 100755
--- a/contrib/web2/src/main/webapp/WEB-INF/web.xml
+++ b/contrib/web2/src/main/webapp/WEB-INF/web.xml
@@ -1,92 +1,108 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"dtd/web-app_2_3.dtd">
<web-app>
- <context-param>
- <param-name>
- javax.servlet.jsp.jstl.fmt.localizationContext
- </param-name>
- <param-value>org.nutch.jsp.resources</param-value>
- </context-param>
- <context-param>
- <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
- <param-value>en</param-value>
- </context-param>
- <servlet>
- <servlet-name>action</servlet-name>
- <servlet-class>
- org.apache.struts.action.ActionServlet
- </servlet-class>
- <init-param>
- <param-name>config</param-name>
- <param-value>/WEB-INF/struts-config.xml</param-value>
- </init-param>
- <init-param>
- <param-name>factoryClassname</param-name>
- <param-value>
- org.apache.nutch.webapp.tiles.ExtendableDefinitionsFactory
- </param-value>
- </init-param>
- <load-on-startup>2</load-on-startup>
- </servlet>
- <servlet>
- <servlet-name>Cached</servlet-name>
- <servlet-class>
- org.apache.nutch.webapp.servlet.CachedServlet
- </servlet-class>
- </servlet>
- <servlet>
- <servlet-name>OpenSearch</servlet-name>
- <servlet-class>
- org.apache.nutch.webapp.servlet.OpenSearchServlet
- </servlet-class>
- </servlet>
- <servlet>
- <servlet-name>PluginResourceServlet</servlet-name>
- <servlet-class>
- org.apache.nutch.webapp.servlet.ResourceServlet
- </servlet-class>
- </servlet>
- <servlet>
- <servlet-name>PluginJSPDispatcher</servlet-name>
- <servlet-class>
- org.apache.nutch.webapp.servlet.JspDispatcherServlet
- </servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Cached</servlet-name>
- <url-pattern>/servlet/cached</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>OpenSearch</servlet-name>
- <url-pattern>/opensearch</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>action</servlet-name>
- <url-pattern>*.do</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>PluginJSPDispatcher</servlet-name>
- <url-pattern>/plugin/*</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>PluginResourceServlet</servlet-name>
- <url-pattern>/resources/*</url-pattern>
- </servlet-mapping>
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- </welcome-file-list>
- <taglib>
- <taglib-uri>/tags/struts-tiles</taglib-uri>
- <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
- </taglib>
- <taglib>
- <taglib-uri>/tags/jstl-c</taglib-uri>
- <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
- </taglib>
- <taglib>
- <taglib-uri>/tags/jstl-fmt</taglib-uri>
- <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
- </taglib>
+ <context-param>
+ <param-name>
+ javax.servlet.jsp.jstl.fmt.localizationContext
+ </param-name>
+ <param-value>org.nutch.jsp.resources</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name>
+ <param-value>en</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>action</servlet-name>
+ <servlet-class>
+ org.apache.struts.action.ActionServlet
+ </servlet-class>
+ <init-param>
+ <param-name>config</param-name>
+ <param-value>/WEB-INF/struts-config.xml</param-value>
+ </init-param>
+ <init-param>
+ <param-name>factoryClassname</param-name>
+ <param-value>
+ org.apache.nutch.webapp.tiles.ExtendableDefinitionsFactory
+ </param-value>
+ </init-param>
+ <load-on-startup>2</load-on-startup>
+ </servlet>
+ <servlet>
+ <servlet-name>Cached</servlet-name>
+ <servlet-class>
+ org.apache.nutch.webapp.servlet.CachedServlet
+ </servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>OpenSearch</servlet-name>
+ <servlet-class>
+ org.apache.nutch.webapp.servlet.OpenSearchServlet
+ </servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>PluginResourceServlet</servlet-name>
+ <servlet-class>
+ org.apache.nutch.webapp.servlet.ResourceServlet
+ </servlet-class>
+ </servlet>
+ <servlet>
+ <servlet-name>PluginJSPDispatcher</servlet-name>
+ <servlet-class>
+ org.apache.nutch.webapp.servlet.JspDispatcherServlet
+ </servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Cached</servlet-name>
+ <url-pattern>/servlet/cached</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>OpenSearch</servlet-name>
+ <url-pattern>/opensearch</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>action</servlet-name>
+ <url-pattern>*.do</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>PluginJSPDispatcher</servlet-name>
+ <url-pattern>/plugin/*</url-pattern>
+ </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>PluginResourceServlet</servlet-name>
+ <url-pattern>/resources/*</url-pattern>
+ </servlet-mapping>
+ <welcome-file-list>
+ <welcome-file>index.jsp</welcome-file>
+ </welcome-file-list>
+ <taglib>
+ <taglib-uri>/tags/struts-tiles</taglib-uri>
+ <taglib-location>/WEB-INF/tld/struts-tiles.tld</taglib-location>
+ </taglib>
+ <taglib>
+ <taglib-uri>/tags/jstl-c</taglib-uri>
+ <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
+ </taglib>
+ <taglib>
+ <taglib-uri>/tags/jstl-fmt</taglib-uri>
+ <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
+ </taglib>
</web-app>