web.xml revision 7144da54eb2f568f735851f343a507c5785d3a62
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>OpenGrok</display-name>
<description>A wicked fast source browser</description>
<context-param>
<param-name>DATA_ROOT</param-name>
<param-value>/directory/containing/data</param-value>
<description>REQUIRED: Full path of the directory where data files generated by OpenGrok are stored</description>
</context-param>
<context-param>
<param-name>SRC_ROOT</param-name>
<param-value>/directory/containing/src</param-value>
<description>REQUIRED: Full path to source tree</description>
</context-param>
<context-param>
<param-name>HEADER</param-name>
<param-value>&lt;div id="MastheadLogo"&gt; &lt;h1&gt; OpenGrok &lt;/h1&gt; &lt;/div&gt;</param-value>
<description>OPTIONAL: Fragment of html encoded html that will be used for the title or logo of the project</description>
</context-param>
<context-param>
<param-name>SCAN_REPOS</param-name>
<param-value>false</param-value>
<description>Set this variable to true if you would like the web application to scan for external repositories (Mercurial)</description>
</context-param>
<listener>
<listener-class>org.opensolaris.opengrok.web.WebappListener</listener-class>
</listener>
<servlet>
<servlet-name>search</servlet-name>
<display-name>Source Finder</display-name>
<jsp-file>/search.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>history</servlet-name>
<display-name>Source History</display-name>
<jsp-file>/history.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>lister</servlet-name>
<display-name>Source lister</display-name>
<jsp-file>/list.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>diff</servlet-name>
<display-name>Source diffs between revisions</display-name>
<jsp-file>/diff.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>more</servlet-name>
<display-name>Shows more matching lines</display-name>
<jsp-file>/more.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>rss</servlet-name>
<display-name>Source Changes in RSS format</display-name>
<jsp-file>/rss.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>raw</servlet-name>
<display-name>Raw Source lister</display-name>
<servlet-class>org.opensolaris.opengrok.web.raw</servlet-class>
</servlet>
<servlet>
<servlet-name>error</servlet-name>
<display-name>Error Handler</display-name>
<jsp-file>/error.jsp</jsp-file>
</servlet>
<servlet>
<servlet-name>enoent</servlet-name>
<display-name>File not found handler</display-name>
<jsp-file>/enoent.jsp</jsp-file>
</servlet>
<servlet-mapping>
<servlet-name>search</servlet-name>
<url-pattern>/search</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>history</servlet-name>
<url-pattern>/history/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>lister</servlet-name>
<url-pattern>/xref/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>raw</servlet-name>
<url-pattern>/raw/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>search</servlet-name>
<url-pattern>/s</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>diff</servlet-name>
<url-pattern>/diff/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>more</servlet-name>
<url-pattern>/more/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>rss</servlet-name>
<url-pattern>/rss/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>error</servlet-name>
<url-pattern>/error</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>enoent</servlet-name>
<url-pattern>/enoent</url-pattern>
</servlet-mapping>
<error-page>
<error-code>404</error-code>
<location>/enoent</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/error</location>
</error-page>
</web-app>