| <?xml version="1.0" encoding="ISO-8859-1"?> |
| |
| <!-- |
| |
| Copyright 2002,2004 The Apache Software Foundation. |
| |
| Licensed 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. |
| |
| --> |
| |
| |
| <web-app xmlns="http://java.sun.com/xml/ns/j2ee" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee |
| http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" |
| version="2.4"> |
| |
| <display-name>Struts-Shale MailReader Example</display-name> |
| |
| <!-- Select JSF State Saving Mode --> |
| <context-param> |
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name> |
| <param-value>client</param-value> |
| </context-param> |
| |
| <!-- Shale Application Controller Filter --> |
| <filter> |
| <filter-name>shale</filter-name> |
| <filter-class> |
| org.apache.shale.faces.ShaleApplicationFilter |
| </filter-class> |
| </filter> |
| |
| <!-- Shale Application Controller Filter Mapping --> |
| <filter-mapping> |
| <filter-name>shale</filter-name> |
| <url-pattern>/*</url-pattern> |
| </filter-mapping> |
| |
| MYFACES_BEGIN |
| <listener> |
| <listener-class> |
| net.sourceforge.myfaces.webapp.StartupServletContextListener |
| </listener-class> |
| </listener> |
| MYFACES_END |
| |
| <!-- Application Startup/Shutdown Listener --> |
| <listener> |
| <listener-class> |
| org.apache.shale.examples.mailreader.ApplicationListener |
| </listener-class> |
| </listener> |
| |
| <!-- JavaServer Faces Servlet Configuration --> |
| <servlet> |
| <servlet-name>faces</servlet-name> |
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> |
| <load-on-startup>1</load-on-startup> |
| </servlet> |
| |
| <!-- JavaServer Faces Servlet Mapping --> |
| <servlet-mapping> |
| <servlet-name>faces</servlet-name> |
| <url-pattern>*.faces</url-pattern> |
| </servlet-mapping> |
| |
| <!-- Welcome File List --> |
| <welcome-file-list> |
| <welcome-file>welcome.jsp</welcome-file> |
| </welcome-file-list> |
| |
| </web-app> |