This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
In my filter i have requirement of showing user a message with ok cancel option.
if the user opts for ok then i have continue to the filter chain, if user opts for cancel then i need to redirect him some other page say error.jsp
I am trying as shown below
Well, you can forward or redirect a request from a filter. It's the part about expecting the subsequent request to come back into the filter and continue where the previous request left off which it doesn't work like that.