You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emmanouil Batsis <Em...@eurodyn.com> on 2006/06/29 10:51:49 UTC

Validate boolean


Just wondering what people use as a best practice to handle/validate 
boolean values in form beans:

* Do you use boolean or string objects in your form beans?
* What do you use instead of @struts.validator type="boolean" ?

Cheers,

Manos



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validate boolean

Posted by Richard Yee <ry...@cruzio.com>.
Use the Boolean wrapper object.

-Richard

Emmanouil Batsis wrote:
>
>
> Just wondering what people use as a best practice to handle/validate 
> boolean values in form beans:
>
> * Do you use boolean or string objects in your form beans?
> * What do you use instead of @struts.validator type="boolean" ?
>
> Cheers,
>
> Manos
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Validate boolean

Posted by Paul Benedict <pa...@yahoo.com>.
I exclusively use strings in my forms.

Emmanouil Batsis <Em...@eurodyn.com> wrote: 

Just wondering what people use as a best practice to handle/validate 
boolean values in form beans:

* Do you use boolean or string objects in your form beans?
* What do you use instead of @struts.validator type="boolean" ?

Cheers,

Manos



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



 		
---------------------------------
Yahoo! Music Unlimited - Access over 1 million songs.Try it free.