You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jeff Kyser <kt...@comcast.net> on 2003/05/31 18:37:27 UTC
nested:equal and boolean bean methods
Hey,
Should <nested:equal property="booleanValue"
value="true">...</nested:equal>
work for a bean with?
public boolean isBooleanValue() {
return val;
}
Or do I just need to add a:
public String getBooleanValue() {
return (val) ? "true" : "false";
}
to make this work?
thanks,
-jeff
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: nested:equal and boolean bean methods
Posted by Jeff Kyser <kt...@comcast.net>.
Thanks, Ashok, that's what it appeared to me, but was
hoping that I didn't need them. I appreciate the feedback!
-jeff
On Saturday, May 31, 2003, at 10:12 PM, Ashok Madhavan wrote:
> hi Jeff,
>
> you must have getBooleanValue().
>
> regards
> Ashok
>
> --- Jeff Kyser <kt...@comcast.net> wrote:
>> Hey,
>>
>> Should <nested:equal property="booleanValue"
>> value="true">...</nested:equal>
>>
>> work for a bean with?
>>
>> public boolean isBooleanValue() {
>> return val;
>> }
>>
>> Or do I just need to add a:
>>
>> public String getBooleanValue() {
>> return (val) ? "true" : "false";
>> }
>>
>> to make this work?
>>
>> thanks,
>>
>> -jeff
>>
>>
>>
> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail:
>> struts-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: nested:equal and boolean bean methods
Posted by Ashok Madhavan <su...@pacbell.net>.
hi Jeff,
you must have getBooleanValue().
regards
Ashok
--- Jeff Kyser <kt...@comcast.net> wrote:
> Hey,
>
> Should <nested:equal property="booleanValue"
> value="true">...</nested:equal>
>
> work for a bean with?
>
> public boolean isBooleanValue() {
> return val;
> }
>
> Or do I just need to add a:
>
> public String getBooleanValue() {
> return (val) ? "true" : "false";
> }
>
> to make this work?
>
> thanks,
>
> -jeff
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org