As far as I know if I want to use predefined SwitchAction to achieve module switch, all I need to do is to:
1. Add an action tag as show
2. Then, use the URI as shown below to forward control to another module resource
But, my question now is, in what circumstances users choose to use the technique mentioned above; whereas, we can just use local & global forward or even jsp tag to realize module switching?
This issue has bothered me for a long time.
Thanks in advance!
1. Add an action tag as show
Code:
...
<action-mappings>
<action path="/toModule"
type="org.apache.struts.actions.SwitchAction"/>
</action-mappings>
...
Code:
localhost:8080/toModule.do?prefix=&page=/index.do
But, my question now is, in what circumstances users choose to use the technique mentioned above; whereas, we can just use local & global forward or even jsp tag to realize module switching?
This issue has bothered me for a long time.
Thanks in advance!