View Single Post
Old 04-25-2008, 09:59 PM   PM User | #1
tech99sri
New Coder

 
Join Date: Apr 2008
Posts: 17
Thanks: 10
Thanked 0 Times in 0 Posts
tech99sri is an unknown quantity at this point
Restricting access to jsp pages in Filters

Hi ,
I am using a filter to prevent direct access to jsp pages (everything works fine). But I have 2 pages that should not be "filtered" when the url is given.
Like the welcome.jsp page . When the user gives welcome.jsp page it should not be forwarded to the login.jsp page (I am redirecting all the other jsp pages to login.jsp page) .
I dont want to hard code it using if () stmts in the filter.
Please provide me the solution so tht when the user enters the welcome.jsp , he is directed to welcome.jsp page instead of login.jsp page.
Is there any way to do it in the web.xml.
thanks
tech99sri is offline   Reply With Quote