RE: Filter chain

2004-03-12 Thread Shapira, Yoav

Hi,

Is it possible to specify the sequence of filters being processed by
the
container?  I have a checksession filter that throws a user object
into the session and a second filter will gather statistics on
requestsI want the checksession filter to be processed first

The Servlet Spec is your friend.  From SRC.6.2.4:
The order the container uses in building the chain of filters to be
applied for a
particular request URI is as follows:
1. First, the url-pattern matching filter mappings in the same order
that these
elements appear in the deployment descriptor.
2. Next, the servlet-name matching filter mappings in the same order
that
these elements appear in the deployment descriptor.

There is more in that section if you're interested.

Yoav Shapira



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]



RE: Filter chain

2004-03-12 Thread Pitre, Russell
Thanx, I must have over looked it ;)

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 12, 2004 10:44 AM
To: Tomcat Users List
Subject: RE: Filter chain


Hi,

Is it possible to specify the sequence of filters being processed by
the
container?  I have a checksession filter that throws a user object
into the session and a second filter will gather statistics on
requestsI want the checksession filter to be processed first

The Servlet Spec is your friend.  From SRC.6.2.4:
The order the container uses in building the chain of filters to be
applied for a
particular request URI is as follows:
1. First, the url-pattern matching filter mappings in the same order
that these
elements appear in the deployment descriptor.
2. Next, the servlet-name matching filter mappings in the same order
that
these elements appear in the deployment descriptor.

There is more in that section if you're interested.

Yoav Shapira



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]


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