File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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....
 
 
subject: Difference Between DispatchAction and Action (Not the usual question)
 
Similar Threads
execute method
DispatchAction:seems fine, but doesn't work
generic code in action
Duplicate submission problem
need help regarding multiple submit buttons...