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
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
posted Apr 16, 2010 06:25:06
0
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.
subject: struts execute method