laredotornado wrote:
But it seems like the "ActionErrors validate" method from my ActionForm class
is called, fails, and my execute handler is not called.  Is there a way in
the struts-config.xml file that I can set up a foward upon validation
failure?

This is what my struts action is currently ...

        <action path="/hhFlow"
                  type="com.myco.regui.struts.accounts.AccountsAction"
                  scope="request"
                  name="REAccountLookUpBean"
                  validate="true">
</action>

That's Struts 1, not Struts 2.

You may need to call validation manually (not a big deal) and return a different ActionForward on failure.

FWIW, that's what I almost *always* did in S1: I had a base action class that went to input on a GET, validated on a POST, and could be set up to do various things on validation failure. YMMV.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to