A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
what is the significance of SwitchAction in struts framework
Joined: Dec 02, 2008
Jul 15, 2010 10:21:06
I am studying Struts.
I am aware SwitchAction enables switching to actions in different modules.
But when we can directly call actions of different modules from a default module then what is the significance of SwitchAction?
struts-config.xml:- <action path="/switch" type="org.apache.struts.actions.SwitchAction"></action> <action path="/usersubmit" name="lookupForm" type="app.LookupAction" scope="session"> <forward name="success" path="/switch.do?page=/listusers.do&prefix=/admin" /> calls an action listusers from module admin whereas <action path="/usersubmit" name="lookupForm" type="app.LookupAction" scope="session"> <forward name="success" path="/admin/listusers.do/> also does the same thing
Then what is the use of SwitchAction ?
Please clear my doubt on this.
MCA , SJCP
Author and ninkuma
Joined: Jan 10, 2002
Jul 15, 2010 10:22:58
Please be sure to ask Struts questions in the Struts forum. I have moved this post there for you.
Books by Bear
I agree. Here's the link:
- it saves me about five hours per week
subject: what is the significance of SwitchAction in struts framework
Error:ActionMappings not found for second module
Struts modules does not work!
Data Source trouble - javax.servlet.UnavailableException: Initializing applic (SOLVED)
Question regarding forward tag
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013