Howdy,
Of the three options I'd suggest, valves would be least preferred by me
as they're tomcat-specific:

1. Copy the filter classes and declaration into each webapp where you
need it.

2. Copy the filter classes to $CATALINA_HOME/common/lib or
commons/classes, put the filter declaration in
$CATALINA_HOME/conf/web.xml.  Check your logs for errors if this is what
you've already done and it doesn't work.

3. Valves.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Steven Perry [mailto:[EMAIL PROTECTED]
>Sent: Monday, October 06, 2003 1:38 AM
>To: Tomcat Users List
>Subject: Re: Help :- Filters .
>
>Thanks a lot Jacob. I'll take a look at the docs right
>away.
>
>--Steve
>
>--- Jacob Kjome <[EMAIL PROTECTED]> wrote:
>>
>> You might want to look into Tomcat-specific Valve's.
>>  Valve's are
>> essentially filters, but act at the level of Tomcat
>> instead of at the level
>> of each webapp and can be more powerful than
>> filters.  The Tomcat docs
>> describe existing valves.  I'd just take a look at
>> one of those valves to
>> get an idea of how to write your own...
>>
>http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html
>>
>> Jake
>>
>> At 10:45 PM 10/3/2003 -0700, you wrote:
>>
>> >  I have configured a filter to do some preService
>> >processing (i,e, before the request is passed onto
>> the
>> >webapp).
>> >
>> >I, initially, configured it for a single webapp
>> >(modified the relevant web.xml) and it worked fine.
>> >
>> >Now, I want to configure it such that ALL webapps
>> use
>> >this filter. I tried to declare the filter in
>> >%tomcat_home%\conf\web.xml, but this doesn't seem
>> to
>> >work.
>> >
>> >Pls help me. How do I go about setting this filter
>> so
>> >that all webapps use it. (without modifying the
>> >web.xml for each and every webapp).
>> >
>> >Tahnk you very much.
>> >
>> >--Steve.
>> >
>> >__________________________________
>> >Do you Yahoo!?
>> >The New Yahoo! Shopping - with improved product
>> search
>> >http://shopping.yahoo.com
>> >
>>
>>---------------------------------------------------------------------
>> >To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> >For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>>
>>
>---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>http://shopping.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to