I am making a filter to intercept calls between a jsp and servlet. If there is a business rules error, I want to redirect the call back to the jsp.
The problem is, when I forward back to the jsp, the browser thinks it was forwarded to the servlet. I can see this in the address bar of the browser. Then when I resubmit the jsp request, the filter thinks the call is coming from the servlet, not the jsp. This breaks the navigation.
This filter is still in the beginning stages, so the business rules have not been added.
This is just to inform you, incase you dont know. We can use filter without using servlet. Actually Filter is the complement to servlet. Moreover, you can say Filter is something more than a servlet or a special servlet.
We can't always guess what's going on just by seeing the address in the address bar. Sometimes the whole application runs under the same URL, and the URL never changes during navigation.
Joined: Jun 25, 2004
well, in this case I do need the filter to be assosiated with a servlet. I am doing a mode to an existing app from another company. And they do not provide the source code. So I need to fit componants between theirs