You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Paul Benedict <pb...@apache.org> on 2007/11/05 09:39:57 UTC

Re: Struts 1.2.7 custom validator problem

I wonder what the purpose is of returning false.

On 10/30/07, John Doe <ba...@gmail.com> wrote:
>
> I've solved the problem. The only way to validate properly is to add an
> error to the errors variable. Without this validator will think that
> everything is OK even if you returned false in validate method.
>
> On 10/29/07, John Doe <ba...@gmail.com> wrote:
> >
> > No, there is no exception.
> >
> > On 10/28/07, Paul Benedict <pb...@apache.org> wrote:
> > >
> > > I think validation can pass if an exception is thrown. Please check
> your
> > > log
> > > files that no error is occurring with your validation.
> > >
> > > Paul
> > >
> >
> >
> >
> > --
> > Best regards,
> > Bashmaкov Anton
>
>
>
>
> --
> Best regards,
> Bashmaкov Anton
>