I'm working on a Struts 2 application and I want to execute an action (in fact I'm interested more on executing an interceptor) instead of simply showing a welcome file. What is the best way to achieve this?
Thanks in advance!
I'm working on a Struts 2 application and I want to execute an action (in fact I'm interested more on executing an interceptor) instead of simply showing a welcome file. What is the best way to achieve this?
Thanks in advance!
Either redirect to the action from the welcome file, or use the action URL as a welcome file entry.
To do the latter, you'll likely need to set dispatcher elements on the element:
Add FORWARD, INCLUDE, and ERROR as well, and the normal filter name/url.