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!

