Environment:
Struts 1.1.
Tomcat 6, Eclipse 3.6
Business Objective: Invoke an application(e.g. App B) from within an existing application (e.g. App A) based on certain criteria.
Tech Objective: Use
Servlet Filter to catch a request from App A if its has a specific URL
pattern and create a new request to App B.
Tech Design
1. I have defined a filter in my web.xml which looks for a specific URL pattern.
2. From my action class execute method I do a ActionMapping.findForward to a
string expecting that web.xml entry for filter will match and filter class get executed
Issue
The control rather goes to the struts-config.xml and there by totally bypassing the web.xml
Questions
1. What's the best way to achieve what I'm intending to do? if not then how can this be achieved?
Thanks