1
So guys, I never had a problem with running the project’s action classes, but this time I wanted to reuse code from another class and when using extends in the call, it just runs prepare() and validate().
I was wondering if anyone has a solution to this kind 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 just:
    <action name="autorizarcontratos_*" class="teste.model.action.AutorizarContratos" method="{1}">
        <result name="ok">/view/autorizarcontratosconsulta.jsp</result>
    </action>