You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arpan Debroy <ar...@gmail.com> on 2008/01/07 11:29:11 UTC

Re: Required validator dosen't work

But  when type conversion error will be occurred, I want to display my
custom error message instead of the auto generated one. So how to do that.

On Dec 14, 2007 11:18 PM, Dave Newton <ne...@yahoo.com> wrote:

> --- Arpan Debroy <ar...@gmail.com> wrote:
> > Using 'Long' is the correct way to get 'required' validator worked.
> > But now I want show error message when user will put string or character
> > instead of any long value. What validator to use?
>
> If you're using the defaultStack this is done for you; type conversion
> errors
> will be added to the field errors via the "conversion" interceptor.
>
> d.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>