On 2/21/06, Jose Manuel Valladares <[EMAIL PROTECTED]> wrote:
> Hello everybody,
> In our app we would like to return another status code when the
> validation fails in the ActionForm.
> Instead of forwarding to the error page and return 200 we would like to
> return 202 in some cases.
>
> Is it possible to do this?
>
> In the execute of the Action is possible because it includes the
> response as a parameter, but this is not the case with the ActionForm.
>
> Any help would be greatly appreciated.

Do not use automatic validation, set "validate=false" in your action
mapping. Do not use "input" attribute of an action mapping.

By turning autovalidation off your Action.execute() will always get
called, so you can return whatever you like.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to