T
Tim Slattery
I have an object (ContactModel). One of its methods is named
"isEmailAddressNull" and returns a boolean. I'm trying to query that
field from a <c:if ... tag in a JSP page. I get no error messages, but
I get the wrong values. The relevant part of the page looks like this:
<c:if test="${!(ContactBean.emailAddressNull)}">
<a id="UpdateEmail" href="/CESLite/Email.do"
class="menu" title="Update Email Address">Update Email
Address</a> |
</c:if>
Coded this way, the link *always* appears, regardless of the value
returned by isEmailAddressNull. If I change it to:
<c:if test="${ContactBean.eMailAddressNull == false}">
then the link *never* appears, regardless of the value returned.
"isEmailAddressNull" and returns a boolean. I'm trying to query that
field from a <c:if ... tag in a JSP page. I get no error messages, but
I get the wrong values. The relevant part of the page looks like this:
<c:if test="${!(ContactBean.emailAddressNull)}">
<a id="UpdateEmail" href="/CESLite/Email.do"
class="menu" title="Update Email Address">Update Email
Address</a> |
</c:if>
Coded this way, the link *always* appears, regardless of the value
returned by isEmailAddressNull. If I change it to:
<c:if test="${ContactBean.eMailAddressNull == false}">
then the link *never* appears, regardless of the value returned.