-
-
2. Re: Valve or Filter?
jae77 Sep 13, 2004 10:14 AM (in response to grinch)i just did a similar implementation of this the other day - it works quite well.
one other thing to note is that if you choose to go the valve route, you will need to deploy those classes in the "lib" directory or else tomcat will throw ClassNotFound exceptions upon startup. -
3. Re: Valve or Filter?
starksm64 Sep 13, 2004 11:17 AM (in response to grinch)As of 3_2_6_RC1 one can sepecify valves as the web deployment layer using a WEB-INF/context.xml. In such a deployment the valves should be seen from the deployment archive, but I have not tried this.
-
4. Re: Valve or Filter?
jburugupalli Sep 13, 2004 11:35 AM (in response to grinch)HI,
I think a Valve is more a Tomcat specific thing and it is only a internal tomcat implementation, were as a Filter should be supported by all servlet containers according to the servlet specifications.
What do you say, am i right.
regards
Jani. -
5. Re: Valve or Filter?
starksm64 Sep 13, 2004 11:53 AM (in response to grinch)Yes, and as such, a filter has limited ability to control deep behavior of the container. In particular a filter has no ability to affect the declarative security model since it runs after the security checks.
-
6. Re: Valve or Filter?
grinch Sep 13, 2004 9:45 PM (in response to grinch)Thanks, everyone, for the replys. I like the valve, so will stick with it for the time being and try to use the context.xml.
Again, Thanks.
-SJ -
7. Re: Valve or Filter?
hamid_jboss Sep 19, 2004 3:08 AM (in response to grinch)how can i use this security valve in jboss 3.2.5?
which files must be changed?