tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Dockery" <use...@sbdconsultants.com>
Subject Re: Way to get Reference to Servlet from Filter?
Date Fri, 19 Dec 2003 18:22:09 GMT
"I've got a fever... and the only cure is more cowbell!"

LOL.  :-D

"Tim Funk" <funkman@joedog.org> wrote in message
news:3FE2FC7F.2080409@joedog.org...
> You won't be able to get the servlet reference. A possibility is to define
> the filter multiple times with different parameters. For example, here is
the
> same class name defined 4 times as 4 different filters.
>
> <filter>
>    <filter-name>filter1</filter-name>
>    <filter-class>more.Cowbell</filter-class>
>    <init-param>
>      <param-name>my</param-name>
>      <param-value>attribute</param-value>
>    </init-param>
> </filter>
> <filter>
>    <filter-name>filter2</filter-name>
>    <filter-class>more.Cowbell</filter-class>
> </filter>
> <filter>
>    <filter-name>filter3</filter-name>
>    <filter-class>more.Cowbell</filter-class>
>    <init-param>
>      <param-name>another</param-name>
>      <param-value>some value</param-value>
>    </init-param>
> </filter>
> <filter>
>    <filter-name>filter4</filter-name>
>    <filter-class>more.Cowbell</filter-class>
> </filter>
>
> I'll leave it up to you to figure out the mappings according to your
constraints.
>
> -Tim
>




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message