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

i see multiple execute method in my struts application

Ami Choc
Greenhorn

Joined: Aug 06, 2012
Posts: 8
Hello all

I have been put on project which is 10yrs old...and i see there is code written where multiple execute methods like as below

executeSubmit
executeBack
executeOther


how would we know which method is invoked when..where is this defined?
i do not see anything in struts-config.xml





Thanks
Nat
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi AMi,

Are you using annotations? Try ot debug the application. There should be configuration file which can be helpful to you . The information you posted is not enough to find the problem.

Regards
Jatan
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
Hi,

There might be a DispachAction from which your action is extended. check your action class.


Thanks,
Shailesh
Ami Choc
Greenhorn

Joined: Aug 06, 2012
Posts: 8
Shailesh Narkhede wrote:Hi,

There might be a DispachAction from which your action is extended. check your action class.


Action Class extends BaseAction
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 368
Hi

BaseAction should be your custome action check, BaseAction extens which class?
Ami Choc
Greenhorn

Joined: Aug 06, 2012
Posts: 8
Shailesh Narkhede wrote:Hi

BaseAction should be your custome action check, BaseAction extens which class?


i finally got the answer

all the action was defined in java script and further it was changing the value of pageAction
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: i see multiple execute method in my struts application