This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes struts execute method Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "struts execute method" Watch "struts execute method" New topic
Author

struts execute method

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 95

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?


Regards,
Deepak

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2896
    
    1

If you don't override execute method, then where do you supposed to implement your application/business code ?


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Rajitha Gunawardhane
Greenhorn

Joined: Dec 11, 2007
Posts: 19
Dude,

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

Good Luck
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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
Greenhorn

Joined: Dec 11, 2007
Posts: 19
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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: struts execute method
 
Similar Threads
Calling an action class at regular intervals
can I change name of the execute() method in struts ?
Passing object to Execute method
Struts 2 newbie - returned String.
execute()