• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts execute method

 
Deepaks Deshpande
Ranch Hand
Posts: 114
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am relatively new to struts . Can any body please tell me why do we have to override the execute method in the ActionClass in struts. What is the idea behind doing it?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you don't override execute method, then where do you supposed to implement your application/business code ?
 
Rajitha Gunawardhane
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dude,

I think its better if you understand the MVC architecture first, and then think on this..

Good Luck
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajitha Gunawardhane wrote:I think its better if you understand the MVC architecture first, and then think on this..

The architecture itself doesn't have much to do with it though; no matter what the architecture is, the "why" of overriding would still be true.

That said--I'd try to avoid learning Struts 1 unless you have a good reason, unless it's for historical purposes.
 
Rajitha Gunawardhane
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:
Rajitha Gunawardhane wrote:I think its better if you understand the MVC architecture first, and then think on this..

The architecture itself doesn't have much to do with it though; no matter what the architecture is, the "why" of overriding would still be true.

That said--I'd try to avoid learning Struts 1 unless you have a good reason, unless it's for historical purposes.


Yeah I am Agreed!
If some has an idea about MVC then he might think on it an understand the usage of it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic