When I create a form exposing a boolean property I only write a;
public void setInactive(boolean flag){}
public boolean isInactive(){}
The inactive form input will have the value "true" and "false" properly
handled, I know it also supports other forms of true and false but I
have only tested "true" and "false".
HTH,
Greg
> -----Original Message-----
> From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 06, 2003 12:30 PM
> Subject: Struts Dilemma
>
> Often when writing a bean for use by a tag, I seem to be writing a
> equivalent method that returns a string value for a boolean property.
>
> For example:
>
> If I mean to pass a boolean property isInactive, I am also writing a
> getInactiveFlag which returns "N" or "Y" based on isInactive.
>
> I use inactiveFlag in my tag definition and inside my tag I check for
"Y"
> or "N".
>
> Am I totally missing something or is there a better way to do this?
>
> TIA
>
>
>
> ---------------------------------------------------------------------
> 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]