I have an application and for every request it passes through a chain of filters. Depending upon certain condition I want the reesponse to break out of a filter and get forwarded to certain url how can I achieve this.
I have tried
both does not work.
I even tried
but it does not break out of the filter chain and executes doChain() so effectively what happens that it executes the page where i want it to be redirected and goes back again to the location redirected by the filter.
Actully i can see the forward and redirect both working as i have put in the sop's in the script of the page but...........after that is done it starts executing the filter chain and which takes it to the other url which was originally invoked and for which the filter chain were working.
My intention is that the processing should stop after the forwarded/redirected page is served.