What have you tried so far? The XWorkBasicConverter converts to booleans
using Boolean.valueOf(bStr), so it will convert the same as that method.

> -----Original Message-----
> From: Skip Walker [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, January 29, 2004 7:25 PM
> To: [EMAIL PROTECTED]
> Subject: [OS-webwork] XWork boolean parameter conversion
> 
> 
> 
> How can I get a String parameter X with a value of "true" or 
> "false" to set the corresponding Boolean accessor in my xwork action.
> 
> 
> If I have an action with
> 
> public isPublicVal()
> {
>       return publicVal;
> }
> 
> public setPublicVal(boolean pub)
> {
>       this.publicVal = pub;
> }
> 
> How can I get a parameter of publicVal with value "true" to 
> properly set the field in the xwork action?
> 
> Thanks,
> 
> Skip Walker
> [EMAIL PROTECTED]
> Gossamer Group
> Bldg #2, Suite 410
> 4807 Spicewood Springs Rd.
> Austin, TX  78759
> (512) 342-2600  Fax (512) 342-2612
>  
> 
> 
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration 
> See the breadth of Eclipse activity. February 3-5 in Anaheim, 
> CA. http://www.eclipsecon.org/osdn 
> _______________________________________________
> Opensymphony-webwork mailing list 
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
> 


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to