This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes Difference Between DispatchAction and Action (Not the usual question) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference Between DispatchAction and Action (Not the usual question)" Watch "Difference Between DispatchAction and Action (Not the usual question)" New topic
Author

Difference Between DispatchAction and Action (Not the usual question)

Adarsh Raj
Greenhorn

Joined: Mar 18, 2009
Posts: 5
I know what is the difference between DispatchAction and Action.....I want to know is there any Performance/Security difference between the two..
I can use the Action class as a DispatchAction one if i code something like this

struts-config.xml


Then in the action class


Here UserAction works the same way as a DispatchAction does....So what are the advantages/disadvantages of ActionDispatch over Action and vice versa.....One thing i can think is that, by using this method, i can hide the method calls from appearing in the url but i know it will make my struts-config big and difficult to manage in addition to that fact that i need to remember a lot of action names while i'm coding...

Any others adv/disadvantages of DispatchAction over Action and vice versa....
 
GeeCON Prague 2014
 
subject: Difference Between DispatchAction and Action (Not the usual question)