aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
 
 
subject: Query regarding Action class in Struts2 Framework
 
Similar Threads
Struts2 + GWT
Struts2 questions
ajax and struts2
Struts2 with RAD7
struts2 workflow question