aspose file tools*
The moose likes Struts and the fly likes struts execute method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts execute method" Watch "struts execute method" New topic
Author

struts execute method

Deepaks Deshpande
Ranch Hand

Joined: Dec 06, 2007
Posts: 113

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: 2902
    
    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: 28
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: 28
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://aspose.com/file-tools
 
subject: struts execute method