I have created action class that extends the ActionSupport class.
for some navigation action i am using following code
do i need to write execute method here?
because it is giving me following error
I was under impression that once you extend ActionSupport Class then you need not write execute() method instead it calls execute() method of ActionSupport class.
hi,girish
You dont need to mention the execute() method in struts.xml .
But if you want to call a particular method other than execute then you need to mention it in the struts.xml file.
Good luck!!
A small leak can sink a Gigantic ship.>
@Raza: the only time you need to write an execute() method is if (a) you don't specify a different method in the mapping and (b) you're not extending ActionSupport.
Ah--I see you're using a non-S2 plugin. Its requirements may be different, and it may be looking *only* in the specified class for an execute() method: check its source; that's almost certainly the issue.
@Raza: I'm saying that you don't need to write an execute() method if you're extending ActionSupport (since it has a default implementation) or you specify the method to be executed in a config file.