aspose file tools*
The moose likes Struts and the fly likes Difference between ActionSupport and Action in Struts 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Difference between ActionSupport and Action in Struts 2" Watch "Difference between ActionSupport and Action in Struts 2" New topic
Author

Difference between ActionSupport and Action in Struts 2

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Guys,

What is the difference that I get when I implement the Action interface rather than extending the ActionSupport class???


SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Have you looked at the documentation for either? Seems pretty straight-forward:

http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/Action.html
http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/ActionSupport.html
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9243
    
    1

Yes, it is. Thanks!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No problem--glad you worked it out :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between ActionSupport and Action in Struts 2
 
Similar Threads
how to do "redirect-action" to some action from within ActionSupport?
execute method of ActionSupport Class
The action name cannot be the same as the action suffix [Action]
request.getParameter in struts2
difference between struts 1.x and 2.x