I am wondering why SwicthAction is needed. 

The following example uses SwitchAction to switch from module test2 to
module test.

In config file of module test2.
    ...
    <action-mappings>
    <action path="/toModule"
    type="org.apache.struts.actions.SwitchAction"/>
    ...
    </action-mappings>
    ...

To forward to Action test in module test from an Action in current module
(test2), I can use
 
        return (new
ActionForward("/toModule.do?prefix=/test&page=/test.do"));

But I can accomplish the same thing by doing

        ActionForward af = new ActionForward("/test/test.do");
        af.setContextRelative(true);
        return af;

So why do we need SwitchAction

Sanjay



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to