Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Query regarding Action class in Struts2 Framework

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 .
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing to explain, really--actions *may* extend ActionSupport and get its functionality, but do not *have* to extend it.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks David ,

But is there any advantage we will get if our Action class extends the ActionSuppourt class
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you get all of ActionSupport's functionality.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic