Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to exclude only one url pattern in filtering

843841Feb 13 2008 — edited Feb 13 2008
Hi,
I have a filter defined in web.xml like this.
<filter>
<filter-name>requestFilter</filter-name>
<filter-class>package.RequestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>requestFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

I filter urls and do some validations; if validation gets wrong I redirect to " error/invaliduser.jsf " page.
So I do not to want " error/invaliduser.jsf" to be filtered.
I want to exclude only one url like 'error/invaliduser.jsf '

What can I do ?

Please help me on this .

thanks
jeya
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2008
Added on Feb 13 2008
3 comments
2,327 views