Predefined Struts SwitchAction

Joined
Jul 27, 2009
Messages
1
Reaction score
0
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

Code:
    ...
    <action-mappings>
    <action path="/toModule"
    type="org.apache.struts.actions.SwitchAction"/>
    </action-mappings>
    ...
2. Then, use the URI as shown below to forward control to another module resource
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top