filter-mapping,process /* except /x?

2002-10-28 Thread rhodespc
Is there a way to have a filter not run on a specific mapping?
For example, if you have a filter-mapping of /* this will be invoked
for every single resource in the container.

How can you prevent the filter from running against one particular
servlet (besides doing skip logic in the filter code)?

BTW, what I am trying to do is to implement security using a filter.
However, I want the login page to be displayed (not run through the
filter).

Thanks!


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




RE: filter-mapping,process /* except /x?

2002-10-28 Thread Cox, Charlie
there is no way. you will have to do that in your filter.

you could apply your filter to subdirectories individually instead of /* and
leave your login page in the root or in an unmapped directory.

Charlie

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:rhodespc;telerama.com]
 Sent: Monday, October 28, 2002 2:02 PM
 To: Tomcat Users List
 Subject: filter-mapping,process /* except /x?
 
 
 Is there a way to have a filter not run on a specific mapping?
 For example, if you have a filter-mapping of /* this will be invoked
 for every single resource in the container.
 
 How can you prevent the filter from running against one particular
 servlet (besides doing skip logic in the filter code)?
 
 BTW, what I am trying to do is to implement security using a filter.
 However, I want the login page to be displayed (not run through the
 filter).
 
 Thanks!
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail: 
 mailto:tomcat-user-help;jakarta.apache.org
 

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




Re: filter-mapping,process /* except /x?

2002-10-28 Thread Craig R. McClanahan


On Mon, 28 Oct 2002 [EMAIL PROTECTED] wrote:

 Date: Mon, 28 Oct 2002 14:02:29 -0500 (EST)
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: filter-mapping,process /* except /x?

 Is there a way to have a filter not run on a specific mapping?
 For example, if you have a filter-mapping of /* this will be invoked
 for every single resource in the container.


The legal syntax for a filter URL pattern is the same as for a servlet
mapping:
* Exact match (/foo).
* Path match (/foo/*).
* Extension match (*.foo).
* Default servlet (/).

 How can you prevent the filter from running against one particular
 servlet (besides doing skip logic in the filter code)?

Skip logic is it.


 BTW, what I am trying to do is to implement security using a filter.
 However, I want the login page to be displayed (not run through the
 filter).

Tomcat has a similar problem with the form login page when you have a
security constraint mapped to /*.  The solution was the same as what you
need to do -- specific logic to exempt your login page from the
restrictions that your filter imposes.


 Thanks!

Craig


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