• Post Reply Bookmark Topic Watch Topic
  • New Topic

Servlet filters  RSS feed

 
yen cheong
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Please does anyone know how to break the chain when using servlet filters? And whether it is possible to redirect to another servlet/ JSP?
Thanks for the help
Yen
 
Bill Siggelkow
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I beleive that to break the chain you simply do not call filterChain.doFilter().
As far as redirecting etc. You have access to the request and response so you should be able to sendRedirect or forward, etc.
I haven't coded any filters yet so YMMV
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!