Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Query regarding Action class in Struts2 Framework 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 "Query regarding Action class in Struts2 Framework" Watch "Query regarding Action class in Struts2 Framework" New topic
Author

Query regarding Action class in Struts2 Framework

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234


Hi ,

I am trying to learn Struts2 .

I saw some of the examples .

I am getting confused as

In some examples , Action class extends ActionSupport and in some Action classes are just plain with an execute method .

so please explain me this thing .


Save India From Corruption - Anna Hazare.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Nothing to explain, really--actions *may* extend ActionSupport and get its functionality, but do not *have* to extend it.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thanks David ,

But is there any advantage we will get if our Action class extends the ActionSuppourt class
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Yes, you get all of ActionSupport's functionality.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Query regarding Action class in Struts2 Framework
 
Similar Threads
Struts2 with RAD7
ajax and struts2
struts2 workflow question
Struts2 questions
Struts2 + GWT