Your jsp has access to your action, in the valuestack. So, you should
be able to ask
<s:if test="hasActionErrors()">
....
</s:if>
Beware: for validation errors,
besides hasActionErrors() you might want to ask hasFieldErrors().
Or use hasErrors() , that includes both
Hernán J. González
http://hjg.com.ar/
On Fri, Feb 27, 2009 at 3:25 PM, boraldo <[email protected]> wrote:
>
> I need output special info in JSP if validation failed. How can I do it?
> ActionSupport has method hasActionErrors. I need smth like that for JSP.
> --
> View this message in context:
> http://www.nabble.com/Form-validation%3A-how-can-khow-in-jsp-that-my-action-validation-failed--tp22250234p22250234.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]