This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
perhaps you should be clear in explaining what it is you're trying to achieve and what kind of error you're getting ;-)
The purpose of a Servlet Filter is to intercept a Servlet request and possibly apply certain pre-processing logic modifying or blocking the response if you choose. One use can be auditing of requests (hit counters etc.), another use is in security to check if access to a resource can be granted for example checking to see if the user is logged in etc.
Joined: Jun 10, 2004
The purpose is to use the filter for checking whether the user is logged-on to the website already or not.
Id already, he will navigate else log-on page is presented.
I am getting 500 error when doFilter(req,res) method of FilterChain is called.
Do not understand, why. Some times it works well. Some times gives 500 error.