https://issues.apache.org/bugzilla/show_bug.cgi?id=49922

--- Comment #3 from Christopher Schultz <ch...@christopherschultz.net> ---
(In reply to comment #2)
> While
> 
> a) I do not have a use case where calling the same filter several times
> would be useful, and
> 
> b) I find this feature of allowing only 1 instance of Filter per FilterChain
> useful and lessing the overall confusion,
> 
> I think that this feature is not what is written in the specification.

Can this not be solved by declaring the same filter twice like this:

<filter>
  <filter-name>Filter Copy 1</filter-name>
  <filter-class>...</filter-class>
</filter>
<filter>
  <filter-name>Filter Copy 2</filter-name>
  <filter-class>...</filter-class>
</filter>

...

<filter-mapping>
  <filter-name>Filter Copy 1</filter-name>
  <url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
  <filter-name>Filter Copy 1</filter-name>
  <url-pattern>/foo/*</url-pattern>
</filter-mapping>

The above should apply both filters to e.g. /foo/bar.jsp

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to