• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts execute method

 
Ranch Hand
Posts: 114
Hibernate Eclipse IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't override execute method, then where do you supposed to implement your application/business code ?
 
Ranch Hand
Posts: 43
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dude,

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

Good Luck
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic