tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier ...@ice-sa.com>
Subject Re: Can we engage a Valve specifically for a Tomcat Web App
Date Tue, 26 Jun 2012 10:10:41 GMT
André Warnier wrote:
> Andun Sameera wrote:
>> I have some web apps hosted in Tomcat container, Can we engage a Valve
>> specifically for a webapp ?
>>
> I've never done it, but according to the excellent on-line 
> documentation, you can.
> http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Introduction
> ("context" being equivalent to "webapp")
> 

..but while we are at it, in such a case it may be better to use a Servlet Filter, rather

than a Valve.  A Valve is specific to Tomcat, while a servlet filter is part of the Java 
Servlet Specification, meaning that it will work under any servlet container, not just Tomcat.




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


Mime
View raw message