| 1 |
<?xml version="1.0" encoding="ISO-8859-1"?> |
|---|
| 2 |
|
|---|
| 3 |
<!-- guest/web.xml and user/web.xml in uwcalxml should be |
|---|
| 4 |
identical except for the security piece. |
|---|
| 5 |
--> |
|---|
| 6 |
|
|---|
| 7 |
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" |
|---|
| 8 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|---|
| 9 |
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee |
|---|
| 10 |
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" |
|---|
| 11 |
version="2.4"> |
|---|
| 12 |
<display-name>Bedwork personal client</display-name> |
|---|
| 13 |
|
|---|
| 14 |
<context-param> |
|---|
| 15 |
<param-name>rpiappname</param-name> |
|---|
| 16 |
<param-value>@APP-NAME@</param-value> |
|---|
| 17 |
</context-param> |
|---|
| 18 |
|
|---|
| 19 |
<context-param> |
|---|
| 20 |
<param-name>bwappname</param-name> |
|---|
| 21 |
<param-value>@BW-APP-NAME@</param-value> |
|---|
| 22 |
</context-param> |
|---|
| 23 |
|
|---|
| 24 |
<context-param> |
|---|
| 25 |
<param-name>debug</param-name> |
|---|
| 26 |
<param-value>@RPI-DEBUG@</param-value> |
|---|
| 27 |
</context-param> |
|---|
| 28 |
|
|---|
| 29 |
<filter> |
|---|
| 30 |
<filter-name>XSLT Filter</filter-name> |
|---|
| 31 |
<filter-class>edu.rpi.sss.util.servlets.ConfiguredXSLTFilter</filter-class> |
|---|
| 32 |
<init-param> |
|---|
| 33 |
<param-name>debug</param-name> |
|---|
| 34 |
<param-value>@RPI-DEBUG@</param-value> |
|---|
| 35 |
</init-param> |
|---|
| 36 |
<init-param> |
|---|
| 37 |
<param-name>directoryBrowsingDisallowed</param-name> |
|---|
| 38 |
<param-value>@DIRECTORY-BROWSING-DISALLOWED@</param-value> |
|---|
| 39 |
</init-param> |
|---|
| 40 |
<init-param> |
|---|
| 41 |
<param-name>ignoreContentType</param-name> |
|---|
| 42 |
<param-value>@IGNORE-CONTENT-TYPE@</param-value> |
|---|
| 43 |
</init-param> |
|---|
| 44 |
</filter> |
|---|
| 45 |
|
|---|
| 46 |
<filter> |
|---|
| 47 |
<filter-name>SvcI Filter</filter-name> |
|---|
| 48 |
<filter-class>org.bedework.webcommon.BwSvciFilter</filter-class> |
|---|
| 49 |
<init-param> |
|---|
| 50 |
<param-name>debug</param-name> |
|---|
| 51 |
<param-value>@RPI-DEBUG@</param-value> |
|---|
| 52 |
</init-param> |
|---|
| 53 |
</filter> |
|---|
| 54 |
|
|---|
| 55 |
<!-- not yet - need to reconfig jboss - see cocoon install for hints |
|---|
| 56 |
<filter> |
|---|
| 57 |
<filter-name>FOP Filter</filter-name> |
|---|
| 58 |
<filter-class>edu.rpi.sss.util.servlets.FOPFilter</filter-class> |
|---|
| 59 |
<init-param> |
|---|
| 60 |
<param-name>debug</param-name> |
|---|
| 61 |
<param-value>0</param-value> |
|---|
| 62 |
</init-param> |
|---|
| 63 |
<init-param> |
|---|
| 64 |
<param-name>dump</param-name> |
|---|
| 65 |
<param-value>false</param-value> |
|---|
| 66 |
</init-param> |
|---|
| 67 |
</filter> --> |
|---|
| 68 |
|
|---|
| 69 |
<!-- XSLT should get the response before the FOPFilter --> |
|---|
| 70 |
|
|---|
| 71 |
<filter-mapping> |
|---|
| 72 |
<filter-name>SvcI Filter</filter-name> |
|---|
| 73 |
<url-pattern>*.do</url-pattern> |
|---|
| 74 |
<dispatcher>INCLUDE</dispatcher> |
|---|
| 75 |
<dispatcher>FORWARD</dispatcher> |
|---|
| 76 |
<dispatcher>REQUEST</dispatcher> |
|---|
| 77 |
</filter-mapping> |
|---|
| 78 |
|
|---|
| 79 |
<filter-mapping> |
|---|
| 80 |
<filter-name>SvcI Filter</filter-name> |
|---|
| 81 |
<url-pattern>*.rdo</url-pattern> |
|---|
| 82 |
<dispatcher>INCLUDE</dispatcher> |
|---|
| 83 |
<dispatcher>FORWARD</dispatcher> |
|---|
| 84 |
<dispatcher>REQUEST</dispatcher> |
|---|
| 85 |
</filter-mapping> |
|---|
| 86 |
|
|---|
| 87 |
<filter-mapping> |
|---|
| 88 |
<filter-name>SvcI Filter</filter-name> |
|---|
| 89 |
<url-pattern>*.gdo</url-pattern> |
|---|
| 90 |
<dispatcher>INCLUDE</dispatcher> |
|---|
| 91 |
<dispatcher>FORWARD</dispatcher> |
|---|
| 92 |
<dispatcher>REQUEST</dispatcher> |
|---|
| 93 |
</filter-mapping> |
|---|
| 94 |
|
|---|
| 95 |
<filter-mapping> |
|---|
| 96 |
<filter-name>XSLT Filter</filter-name> |
|---|
| 97 |
<url-pattern>*.rdo</url-pattern> |
|---|
| 98 |
<dispatcher>INCLUDE</dispatcher> |
|---|
| 99 |
<dispatcher>FORWARD</dispatcher> |
|---|
| 100 |
<dispatcher>REQUEST</dispatcher> |
|---|
| 101 |
</filter-mapping> |
|---|
| 102 |
|
|---|
| 103 |
<listener> |
|---|
| 104 |
<listener-class>edu.rpi.sss.util.jsp.SessionListener</listener-class> |
|---|
| 105 |
</listener> |
|---|
| 106 |
|
|---|
| 107 |
<servlet> |
|---|
| 108 |
<servlet-name>action</servlet-name> |
|---|
| 109 |
<servlet-class> |
|---|
| 110 |
@SERVLET-CLASS@ |
|---|
| 111 |
</servlet-class> |
|---|
| 112 |
|
|---|
| 113 |
<load-on-startup>1</load-on-startup> |
|---|
| 114 |
</servlet> |
|---|
| 115 |
|
|---|
| 116 |
<!-- Servlet definition for portlet use. uportal only at the moment --> |
|---|
| 117 |
<servlet> |
|---|
| 118 |
<servlet-name>@PORTLET-NAME@</servlet-name> |
|---|
| 119 |
<display-name>@PORTLET-NAME@ Wrapper</display-name> |
|---|
| 120 |
<servlet-class>org.apache.pluto.core.PortletServlet</servlet-class> |
|---|
| 121 |
<init-param> |
|---|
| 122 |
<param-name>portlet-class</param-name> |
|---|
| 123 |
<param-value>org.apache.portals.bridges.struts.StrutsPortlet</param-value> |
|---|
| 124 |
</init-param> |
|---|
| 125 |
<init-param> |
|---|
| 126 |
<param-name>portlet-guid</param-name> |
|---|
| 127 |
<param-value>@CONTEXT-ROOT@.@PORTLET-NAME@</param-value> |
|---|
| 128 |
</init-param> |
|---|
| 129 |
</servlet> |
|---|
| 130 |
|
|---|
| 131 |
<servlet-mapping> |
|---|
| 132 |
<servlet-name>action</servlet-name> |
|---|
| 133 |
<url-pattern>*.gdo</url-pattern> |
|---|
| 134 |
</servlet-mapping> |
|---|
| 135 |
|
|---|
| 136 |
<servlet-mapping> |
|---|
| 137 |
<servlet-name>action</servlet-name> |
|---|
| 138 |
<url-pattern>*.rdo</url-pattern> |
|---|
| 139 |
</servlet-mapping> |
|---|
| 140 |
|
|---|
| 141 |
<!-- This probably has to be last for struts --> |
|---|
| 142 |
<servlet-mapping> |
|---|
| 143 |
<servlet-name>action</servlet-name> |
|---|
| 144 |
<url-pattern>*.do</url-pattern> |
|---|
| 145 |
</servlet-mapping> |
|---|
| 146 |
|
|---|
| 147 |
<!-- uPortal2 portlet servlet mapping here --> |
|---|
| 148 |
|
|---|
| 149 |
<session-config> |
|---|
| 150 |
<session-timeout>30</session-timeout> |
|---|
| 151 |
</session-config> |
|---|
| 152 |
|
|---|
| 153 |
<!-- This should be the name of the action we want to execute for a |
|---|
| 154 |
url with no path component. A file of this name must exist but will |
|---|
| 155 |
not be used (except to fool the container). --> |
|---|
| 156 |
<welcome-file-list> |
|---|
| 157 |
<welcome-file>setup.do</welcome-file> |
|---|
| 158 |
</welcome-file-list> |
|---|
| 159 |
|
|---|
| 160 |
<jsp-config> |
|---|
| 161 |
<!-- Reference a taglib in the jsp like this: |
|---|
| 162 |
<%@ taglib uri="struts-bean" prefix="bean" %> |
|---|
| 163 |
--> |
|---|
| 164 |
|
|---|
| 165 |
<taglib> |
|---|
| 166 |
<taglib-uri>struts-bean</taglib-uri> |
|---|
| 167 |
<taglib-location>/WEB-INF/tlds/struts-bean.tld</taglib-location> |
|---|
| 168 |
</taglib> |
|---|
| 169 |
<taglib> |
|---|
| 170 |
<taglib-uri>struts-html</taglib-uri> |
|---|
| 171 |
<taglib-location>/WEB-INF/tlds/struts-html.tld</taglib-location> |
|---|
| 172 |
</taglib> |
|---|
| 173 |
|
|---|
| 174 |
<taglib> |
|---|
| 175 |
<taglib-uri>struts-genurl</taglib-uri> |
|---|
| 176 |
<taglib-location>/WEB-INF/tlds/@GENURL-TAGLIB-TLD@</taglib-location> |
|---|
| 177 |
</taglib> |
|---|
| 178 |
|
|---|
| 179 |
<taglib> |
|---|
| 180 |
<taglib-uri>struts-logic</taglib-uri> |
|---|
| 181 |
<taglib-location>/WEB-INF/tlds/struts-logic.tld</taglib-location> |
|---|
| 182 |
</taglib> |
|---|
| 183 |
<taglib> |
|---|
| 184 |
<taglib-uri>struts-template</taglib-uri> |
|---|
| 185 |
<taglib-location>/WEB-INF/tlds/struts-template.tld</taglib-location> |
|---|
| 186 |
</taglib> |
|---|
| 187 |
|
|---|
| 188 |
<taglib> |
|---|
| 189 |
<taglib-uri>bedework</taglib-uri> |
|---|
| 190 |
<taglib-location>/WEB-INF/tlds/bedework.tld</taglib-location> |
|---|
| 191 |
</taglib> |
|---|
| 192 |
|
|---|
| 193 |
<!-- Only used for portlet --> |
|---|
| 194 |
<taglib> |
|---|
| 195 |
<taglib-uri>http://java.sun.com/portlet</taglib-uri> |
|---|
| 196 |
<taglib-location>/WEB-INF/tlds/pluto-portlet.tld</taglib-location> |
|---|
| 197 |
</taglib> |
|---|
| 198 |
</jsp-config> |
|---|
| 199 |
|
|---|
| 200 |
<!-- JDBC DataSources (java:comp/env/jdbc) --> |
|---|
| 201 |
<resource-ref> |
|---|
| 202 |
<description>The calendar DS</description> |
|---|
| 203 |
<res-ref-name>jdbc/calDB</res-ref-name> |
|---|
| 204 |
<res-type>javax.sql.DataSource</res-type> |
|---|
| 205 |
<res-auth>Container</res-auth> |
|---|
| 206 |
</resource-ref> |
|---|
| 207 |
|
|---|
| 208 |
<!-- The role name of * below means all roles defined in this web.xml --> |
|---|
| 209 |
<security-constraint> |
|---|
| 210 |
<web-resource-collection> |
|---|
| 211 |
<web-resource-name>Bedework</web-resource-name> |
|---|
| 212 |
<description>Bedework user</description> |
|---|
| 213 |
<url-pattern>/*</url-pattern> |
|---|
| 214 |
</web-resource-collection> |
|---|
| 215 |
<auth-constraint> |
|---|
| 216 |
<role-name>*</role-name> |
|---|
| 217 |
</auth-constraint> |
|---|
| 218 |
<user-data-constraint> |
|---|
| 219 |
<description>no description</description> |
|---|
| 220 |
<transport-guarantee>@TRANSPORT-GUARANTEE@</transport-guarantee> |
|---|
| 221 |
</user-data-constraint> |
|---|
| 222 |
</security-constraint> |
|---|
| 223 |
|
|---|
| 224 |
<login-config> |
|---|
| 225 |
<auth-method>FORM</auth-method> |
|---|
| 226 |
<realm-name>@SECURITY-DOMAIN@</realm-name> |
|---|
| 227 |
<form-login-config> |
|---|
| 228 |
<form-login-page>/docs/login/login.html</form-login-page> |
|---|
| 229 |
<form-error-page>/docs/login/error.html</form-error-page> |
|---|
| 230 |
</form-login-config> |
|---|
| 231 |
</login-config> |
|---|
| 232 |
|
|---|
| 233 |
<security-role> |
|---|
| 234 |
<description>A calendar system user</description> |
|---|
| 235 |
<role-name>@SECURITY-PREFIX@.user</role-name> |
|---|
| 236 |
</security-role> |
|---|
| 237 |
|
|---|
| 238 |
<!-- Insert ejb-ref here --> |
|---|
| 239 |
</web-app> |
|---|