[66] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
---|
| 2 | <!DOCTYPE web-app |
---|
| 3 | PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" |
---|
| 4 | "http://java.sun.com/dtd/web-app_2_3.dtd"> |
---|
| 5 | <!-- |
---|
| 6 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 7 | contributor license agreements. See the NOTICE file distributed with |
---|
| 8 | this work for additional information regarding copyright ownership. |
---|
| 9 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 10 | (the "License"); you may not use this file except in compliance with |
---|
| 11 | the License. You may obtain a copy of the License at |
---|
| 12 | |
---|
| 13 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 14 | |
---|
| 15 | Unless required by applicable law or agreed to in writing, software |
---|
| 16 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 18 | See the License for the specific language governing permissions and |
---|
| 19 | limitations under the License. |
---|
| 20 | --> |
---|
| 21 | <web-app> |
---|
| 22 | |
---|
| 23 | <!-- order is very important here --> |
---|
| 24 | |
---|
| 25 | <listener> |
---|
| 26 | <listener-class>org.apache.nutch.searcher.NutchBean$NutchBeanConstructor</listener-class> |
---|
| 27 | </listener> |
---|
| 28 | |
---|
| 29 | <servlet> |
---|
| 30 | <servlet-name>Cached</servlet-name> |
---|
| 31 | <servlet-class>org.apache.nutch.servlet.Cached</servlet-class> |
---|
| 32 | </servlet> |
---|
| 33 | |
---|
| 34 | <servlet> |
---|
| 35 | <servlet-name>OpenSearch</servlet-name> |
---|
| 36 | <servlet-class>org.apache.nutch.searcher.OpenSearchServlet</servlet-class> |
---|
| 37 | </servlet> |
---|
| 38 | |
---|
| 39 | <servlet> |
---|
| 40 | <servlet-name>SearchServlet</servlet-name> |
---|
| 41 | <servlet-class>org.apache.nutch.searcher.response.SearchServlet</servlet-class> |
---|
| 42 | </servlet> |
---|
| 43 | |
---|
| 44 | <servlet-mapping> |
---|
| 45 | <servlet-name>Cached</servlet-name> |
---|
| 46 | <url-pattern>/servlet/cached</url-pattern> |
---|
| 47 | </servlet-mapping> |
---|
| 48 | |
---|
| 49 | <servlet-mapping> |
---|
| 50 | <servlet-name>OpenSearch</servlet-name> |
---|
| 51 | <url-pattern>/opensearch</url-pattern> |
---|
| 52 | </servlet-mapping> |
---|
| 53 | |
---|
| 54 | <servlet-mapping> |
---|
| 55 | <servlet-name>SearchServlet</servlet-name> |
---|
| 56 | <url-pattern>/search</url-pattern> |
---|
| 57 | </servlet-mapping> |
---|
| 58 | |
---|
| 59 | <welcome-file-list> |
---|
| 60 | <welcome-file>search.html</welcome-file> |
---|
| 61 | <welcome-file>index.html</welcome-file> |
---|
| 62 | <welcome-file>index.jsp</welcome-file> |
---|
| 63 | </welcome-file-list> |
---|
| 64 | |
---|
| 65 | <taglib> |
---|
| 66 | <taglib-uri>http://jakarta.apache.org/taglibs/i18n</taglib-uri> |
---|
| 67 | <taglib-location>/WEB-INF/taglibs-i18n.tld</taglib-location> |
---|
| 68 | </taglib> |
---|
| 69 | |
---|
| 70 | </web-app> |
---|