boolean value always false when in expression

hi,

I've written a pretty simple custom tag on which a boolean value can be set:

publicclass TabTagextends HtmlEscapingAwareTag

{

privateboolean active;

publicvoid setActive(boolean active)

{

this.active = active;

}

}

if I call the tag like this (hardcoded boolean) it works fine:<cust:tab active="true">

<spring:message code="tab.user.search" />

</cust:tab>

However, when instead I want to set it through an expression:

<cust:tab active="${findProjectsForm.mode == 'ALL'}">

<spring:message code="tab.user.search" />

</cust:tab>

then the value of active is always false!

The expression is correct; meaning if I do <c:out value="${findProjectsForm.mode == 'ALL'}" />

it printstrue.

Anybody know what I'm doing wrong?

tx a lot!

[1391 byte] By [StijnGa] at [2007-11-27 11:40:53]
# 1

try

<cust:tab active="${findProjectsForm.mode eq 'ALL'}">

<spring:message code="tab.user.search" />

</cust:tab>

tolmanka at 2007-7-29 17:34:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

If you include the text : ${findProjectsForm.mode == 'ALL'} in the jsp just on its own, what prints out? Does it get evaluated correctly?

evnafetsa at 2007-7-29 17:34:32 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...