So, guys, I've never had a problem with the execution of project action classes, but this time I wanted to reuse the code from another class and when using extends in the call, it only runs prepare () and validate () .
I would like to know if someone has a solution for this type of problem, the code of the call part of the action is just below:
public class AutorizarContratos extends GerarContrato{
public void prepare() throws Exception {
...
}
public void validate() {
...
}
public String execute(){
return "ok";
}
And in action, it's simply:
<action name="autorizarcontratos_*" class="teste.model.action.AutorizarContratos" method="{1}">
<result name="ok">/view/autorizarcontratosconsulta.jsp</result>
</action>