Hi,

>For example:
>I have a servlet "/hello", which forwards to "/hello.jsp".
>I have a filter that is mapped to "/hello.jsp".
>Accessing "/hello" in WebLogic will trigger the filter. That doesn't
happen
>in Tomcat.

It was my understanding that the tomcat behavior here is correct.

This is because you have NOT defined a filter for the /hello pattern.
You HAVE defined a filter for the /hellp.jsp pattern.  Just because the
servlet at /hello happens to forward to hello.jsp, which matches a
filter pattern, just mean requests to the servlet at /hello should be
filtered.  They don't match the filter pattern.

I would refer to SRV.6.2.4, specifically:

>This requirement means that the container, when receiving an incoming
>request:
>
>Identifies the target web resource according to the rules of SRV.11.2.
>
>If there are filters matched by servlet name and the web resource has a
>servlet-name, the container builds the chain of filters matching in the
>order declared in the deployment descriptor. The last filter in this
chain >corresponds to the last servlet-name matching filter and is the
filter that >invokes the target web resource.

I hope I'm not wrong on this one ;)  I'd be interested in the resolution
of this question.

Yoav Shapira
Millennium ChemInformatics
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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to