(Struts2 - JEE) I used extends from an action class and in the class call my execute () does not run

1

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>
    
asked by anonymous 17.06.2016 / 14:47

0 answers