AFAIK the "required" validator only checks for not-null.

This is almost never what you want, as an empty text box will still send back
an empty string, not null.

d.

--- Arpan Debroy <[EMAIL PROTECTED]> wrote:

> Yeah,
> I am using following -
> <interceptor-ref name="validationWorkflowStack"/>
> 
> Other validators are working.
> Anyway have anyone ever used "required" validator or can you use it now
> once
> to test.
> 
> Thanks
> 
> On Dec 10, 2007 5:26 PM, Simon Berger <[EMAIL PROTECTED]> wrote:
> 
> > Do you have the Validation Interceptor on your Stack?
> >
> > Arpan Debroy schrieb:
> > > I want to validate -
> > >
> > > 1) The text box should have some value("required" validator doesn't
> show
> > any
> > > error message even if it's empty)..
> > > 2) The text box must have any numerical(I am using long data type)
> > value. I
> > > have no clue how to do it for long.
> > >
> > > Can anyone please help..
> > >
> > > Thanks
> > >
> > >
> > >
> > > On Dec 6, 2007 1:50 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >> --- xniit2003 <[EMAIL PROTECTED]> wrote:
> > >>
> > >>> I am trying to use "required" validator in struts2.
> > >>> But it seems this one dosen't  work at all.
> > >>> Have anybody successfully used "required" validator.
> > >>>
> > >> What data type are you attempting to validate?
> > >>
> > >> d.
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> 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]
> >
> >
> 
> 
> -- 
> Thanks & Regards
>  Arpan Debroy
> 
> AOL Online India Private Ltd
> RMZ EcoSpace Campus 1A
> Outer Ring Road, Bellandur,
> Bangalore - 560037
> India
> Mobile No :+9886006306
> on-board :+91 (80) 4035 4528
> E-mail : [EMAIL PROTECTED]
> 


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

Reply via email to