You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by im...@apache.org on 2007/10/24 21:58:22 UTC
svn commit: r587987 -
/myfaces/orchestra/trunk/examples/src/main/webapp/WEB-INF/web.xml
Author: imario
Date: Wed Oct 24 12:58:21 2007
New Revision: 587987
URL: http://svn.apache.org/viewvc?rev=587987&view=rev
Log:
spring filter in case you use security constraints
Modified:
myfaces/orchestra/trunk/examples/src/main/webapp/WEB-INF/web.xml
Modified: myfaces/orchestra/trunk/examples/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/examples/src/main/webapp/WEB-INF/web.xml?rev=587987&r1=587986&r2=587987&view=diff
==============================================================================
--- myfaces/orchestra/trunk/examples/src/main/webapp/WEB-INF/web.xml (original)
+++ myfaces/orchestra/trunk/examples/src/main/webapp/WEB-INF/web.xml Wed Oct 24 12:58:21 2007
@@ -83,6 +83,13 @@
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
</filter>
+ <!-- in case you use security constraints you might need this filter
+ <filter>
+ <filter-name>springRequestContextFilter</filter-name>
+ <filter-class>org.springframework.web.filter.RequestContextFilter</filter-class>
+ </filter>
+ -->
+
<filter>
<filter-name>requestEncodingFilter</filter-name>
<filter-class>org.apache.myfaces.examples.filter.RequestEncodingFilter</filter-class>
@@ -109,6 +116,15 @@
<url-pattern>/*</url-pattern>
</filter-mapping>
+ <!--
+ <filter-mapping>
+ <filter-name>springRequestContextFilter</filter-name>
+ <url-pattern>/*</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
+ </filter-mapping>
+ -->
+
<!--
- Set up Orchestra to handle non-JSF pages, ie raw jsp.
-
@@ -136,6 +152,8 @@
<filter-mapping>
<filter-name>orchestraFilter</filter-name>
<url-pattern>*.faces</url-pattern>
+ <dispatcher>FORWARD</dispatcher>
+ <dispatcher>REQUEST</dispatcher>
</filter-mapping>
<!--
@@ -170,4 +188,5 @@
<error-code>500</error-code>
<location>/error.jsp</location>
</error-page>
+
</web-app>