Click here to Skip to main content
15,889,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone tell me how to write a filter except for one url (page)? my filter is working but it applies to index page also. need to avoid index page from the filter. Im using jsp, servlet and java for a web app.
Posted
Updated 14-Jul-13 22:34pm
v2
Comments
Shubhashish_Mandal 16-Jul-13 5:07am    
if answered , mark it

1. In filter grab the requested uri
Java
HttpServletRequest.getRequestURI()

2. Create a list of do-not-filter .
3. compare the uri with the list.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900