What is switch action and forwardAction in struts?

What is switch action & forwardAction in struts?

- A SwitchAction is like an Action which switches between modules and forwards the control to the URI that is specified in the new module.

- There are two parameters namely page and prefix. The page is the parameter to which the control is forwarded after switching. The prefix is the parameter that specifies the module to which the control is switched.

- A ForwardAction is used to forward a request to the specified URI. ForwardAction is represented as a destination to the controller is sent soon after the action is completed. JSP page specification in the code can be replaced by declaratively associate as an action forward through the application. The action forward is specified in the configuration file between <action> and </action> tags.

What is switch action & ForwardAction in struts?

- Switch action is used to navigate/move from one module to other module in struts, and it forwards the control to the URI within the new module.

- ForwardAction is used is used to navigate/move within same module and it forwards to the context-relative URI per the parameter specified.
What is LookupDispatch Action?
What is LookupDispatch Action? - The LookupDispatch Action dispatches to the subclass mapped execute method....
Difference between ForwardAction and IncludeAction
Difference between ForwardAction and IncludeAction - Forwarding to a specified URL is provided by the ForwardAction. The mechanism to include the specified URL contents is proveided by the IncludeAction.....
Difference between Html tags and Struts specific HTML Tags
Difference between Html tags and Struts specific HTML Tags - Most of the tags in the Struts framework use the following attributes...
Post your comment