Changeset 995
- Timestamp:
- 06/06/11 10:24:54 (2 years ago)
- Location:
- raptor-web/trunk
- Files:
-
- 1 deleted
- 1 edited
-
release.properties (deleted)
-
src/main/webapp/WEB-INF/web.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
raptor-web/trunk/src/main/webapp/WEB-INF/web.xml
r990 r995 17 17 18 18 --> 19 20 <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 21 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> 22 23 <description>RaptorWeb</description> 24 25 26 <!-- - defines setup that can be accessed by the entire servlet, not just spring hence why security is defined here --> 27 <context-param> 28 <param-name>contextConfigLocation</param-name> 29 <param-value> 30 /WEB-INF/config/security.xml 31 </param-value> 32 </context-param> 33 34 <filter> 35 <filter-name>springSecurityFilterChain</filter-name> 36 <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> 37 </filter> 38 <filter-mapping> 39 <filter-name>springSecurityFilterChain</filter-name> 40 <url-pattern>/*</url-pattern> 41 </filter-mapping> 42 43 <context-param> 44 <param-name>javax.faces.STATE_SAVING_METHOD</param-name> 45 <param-value>server</param-value> 46 </context-param> 47 48 49 <!-- Use xhtml view templates saved as *.xhtml, for use with Facelets --> 50 <context-param> 51 <param-name>javax.faces.DEFAULT_SUFFIX</param-name> 52 <param-value>.xhtml</param-value> 53 </context-param> 54 <!-- Enables special Facelets debug output during development --> 55 <context-param> 56 <param-name>facelets.DEVELOPMENT</param-name> 57 <param-value>false</param-value> 58 </context-param> 59 <!-- Causes Facelets to refresh templates during development, 1 - on, -1 off --> 60 <context-param> 61 <param-name>facelets.REFRESH_PERIOD</param-name> 62 <param-value>-1</param-value> 63 </context-param> 64 65 <!-- Enforce UTF-8 Character Encoding --> 66 <filter> 67 <filter-name>charEncodingFilter</filter-name> 68 <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> 69 <init-param> 70 <param-name>encoding</param-name> 71 <param-value>ISO-8859-1</param-value> 72 </init-param> 73 <init-param> 74 <param-name>forceEncoding</param-name> 75 <param-value>true</param-value> 76 </init-param> 77 </filter> 78 79 <filter-mapping> 80 <filter-name>charEncodingFilter</filter-name> 81 <url-pattern>/*</url-pattern> 82 </filter-mapping> 83 84 <!-- Listener for spring --> 85 <listener> 86 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 87 </listener> 88 <listener> 89 <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> 90 </listener> 91 <!-- Listener, to allow Jetty serving MyFaces apps <listener> <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class> 92 </listener> --> 93 94 <!-- Spring web flow servlet, defines config specific to the current application instance --> 95 <servlet> 96 <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> 97 <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 98 <init-param> 99 <param-name>contextConfigLocation</param-name> 100 <param-value>/WEB-INF/config/raptorweb-servlet.xml 101 </param-value> 102 </init-param> 103 <load-on-startup>1</load-on-startup> 104 </servlet> 105 106 <!-- allows spring security to monitor the HTTPSession, so on logout the session is released furthermore, this is required 107 to allow concurrency control e.g. 1 user session max, otherwise sessions are only every timed out --> 108 <listener> 109 <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> 110 </listener> 111 112 <!-- Serves static resource content from .jar files such as spring-faces.jar --> 113 <servlet> 114 <servlet-name>Resources Servlet</servlet-name> 115 <servlet-class>org.springframework.js.resource.ResourceServlet</servlet-class> 116 <load-on-startup>0</load-on-startup> 117 </servlet> 118 119 <!-- Map all /resources requests to the Resource Servlet for handling --> 120 <servlet-mapping> 121 <servlet-name>Resources Servlet</servlet-name> 122 <url-pattern>/resources/*</url-pattern> 123 </servlet-mapping> 124 125 <!-- Faces Servlet --> 126 <!--<servlet> <servlet-name>faces</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> </servlet> --> 127 128 <servlet> 129 <servlet-name>Faces Servlet</servlet-name> 130 <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> 131 <load-on-startup>1</load-on-startup> 132 </servlet> 133 134 <!-- Just here so the JSF implementation can initialize --> 135 <servlet-mapping> 136 <servlet-name>Faces Servlet</servlet-name> 137 <url-pattern>*.faces</url-pattern> 138 </servlet-mapping> 139 140 141 <!-- Richfaces config --> 142 <context-param> 143 <param-name>org.richfaces.SKIN</param-name> 144 <param-value>darkX</param-value> 145 </context-param> 146 147 <!-- Making the RichFaces skin spread to standard HTML controls --> 148 <context-param> 149 <param-name>org.richfaces.CONTROL_SKINNING</param-name> 150 <param-value>enable</param-value> 151 </context-param> 152 153 154 155 <filter> 156 <display-name>RichFaces Filter</display-name> 157 <filter-name>richfaces</filter-name> 158 <filter-class>org.ajax4jsf.Filter</filter-class> 159 <init-param> 160 <param-name>maxRequestSize</param-name> 161 <param-value>10000000</param-value> 162 </init-param> 163 <init-param> 164 <param-name>createTempFiles</param-name> 165 <param-value>false</param-value> 166 </init-param> 167 168 </filter> 169 <filter-mapping> 170 <filter-name>richfaces</filter-name> 171 <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> 172 <dispatcher>REQUEST</dispatcher> 173 <dispatcher>FORWARD</dispatcher> 174 <dispatcher>INCLUDE</dispatcher> 175 </filter-mapping> 176 177 <!-- Spring web flow servlet mapping --> 178 <servlet-mapping> 179 <servlet-name>Spring MVC Dispatcher Servlet</servlet-name> 180 <url-pattern>/spring/*</url-pattern> 181 </servlet-mapping> 182 183 <!-- Welcome Files --> 184 <welcome-file-list> 185 <welcome-file>index.html</welcome-file> 186 </welcome-file-list> 187 188 </web-app>
Note: See TracChangeset
for help on using the changeset viewer.
