Hi folks,
I have two questions.
1. We had a requirement to add a filter at the entry point of an application (just before the Main
servlet) to modify the request. To implement this, I wrote a servlet which did the modification and dispatched it to the Main servlet. Is this the best way to do it? What flexibility would a Filter provide that a full-fledged Servlet does not possess?
2. The servlet I authored for 1 above takes the request from the HTTP Server (Weblogic), modifies it and hands it over to the application. We want to do something similar at the other end. When the application is done creating a web page and is about to push it off to the client; I want to insert my code which will look at the generated web page and make some custom modifications. How can we do this without messing with the application code?
Thanks in advance,
Musafir