Hi folks,
We have an application whose Main
servlet is configured in web.xml as main (com.bla.bla.MainServlet). So, it can be accessed:
http://<server> ort/webappName/main
I have wrote another servlet myServlet (com.bla.bla.MyServlet) such that it gets the main request; does some processing and hands it over to MainServlet. It does all this by modifying web.xml and request dispatcher (main points to MyServlet and appMain points to MainServlet; MyServlet performs a request dispatch to appMain).
I want to know if it is possible to hide MainServlet from the world (clients could access MainServlet as:
http://<server> ort/webappName/appMain). Basically I want to force all requests to go through MyServlet.
Thanks in advance,
Musafir