]>
Commit | Line | Data |
---|---|---|
1307f1a2 | 1 | <!-- |
2 | You can put contents of this file into servlet server | |
3 | or use e.g. resin command as | |
4 | <resin:include href="/usr/share/cocoon/conf/webapp.conf"/> | |
5 | in <host/> tag | |
6 | --> | |
7 | <web-app id="/cocoon" app-dir="/home/httpd/cocoon"> | |
8 | ||
9 | <!-- | |
10 | maybe your servlet engine not allow for such | |
11 | tag. but it works with resin. you can always | |
12 | do a link /usr/share/cocoon/lib to WEB-INF/ | |
13 | --> | |
14 | <classpath id="/usr/share/cocoon/lib" library-dir="true"/> | |
15 | ||
16 | <servlet> | |
17 | <servlet-name>org.apache.cocoon.Cocoon</servlet-name> | |
18 | <servlet-class>org.apache.cocoon.Cocoon</servlet-class> | |
19 | <init-param> | |
20 | <param-name>properties</param-name> | |
21 | <param-value>WEB-INF/cocoon.properties</param-value> | |
22 | </init-param> | |
23 | </servlet> | |
24 | ||
25 | <servlet-mapping> | |
26 | <servlet-name>org.apache.cocoon.Cocoon</servlet-name> | |
27 | <url-pattern>*.xml</url-pattern> | |
28 | </servlet-mapping> | |
29 | ||
30 | </web-app> |