Re: OCPSoft Rewrite together with Tapestry 5

Splash Forums Rewrite Users OCPSoft Rewrite together with Tapestry 5 Re: OCPSoft Rewrite together with Tapestry 5

#22474

Hey Julien,

Sorry for the late reply. You can simply override the order by re-defining the filter mapping in your application’s web.xml, but it should already be outer-most:

This is the web-fragment.xml from Rewrite:

<?xml version="1.0" encoding="UTF-8"?>
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd"
version="3.0">

<name id="rewrite">com_ocpsoft_rewrite</name>
<distributable />

<ordering>
<before>
<others />
</before>
</ordering>

<listener>
<listener-class>org.ocpsoft.rewrite.servlet.impl.RewriteServletRequestListener</listener-class>
</listener>

<listener>
<listener-class>org.ocpsoft.rewrite.servlet.impl.RewriteServletContextListener</listener-class>
</listener>

<filter>
<filter-name>OCPsoft Rewrite Filter</filter-name>
<filter-class>org.ocpsoft.rewrite.servlet.RewriteFilter</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>OCPsoft Rewrite Filter</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
<dispatcher>INCLUDE</dispatcher>
<dispatcher>ASYNC</dispatcher>
<dispatcher>ERROR</dispatcher>
</filter-mapping>

</web-fragment>