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.
subject: how to read values after request.dispatch() or sendRedirect?