Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

i see multiple execute method in my struts application

 
Ami Choc
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 299
Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 368
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

There might be a DispachAction from which your action is extended. check your action class.
 
Ami Choc
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

BaseAction should be your custome action check, BaseAction extens which class?
 
Ami Choc
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic