Accessing the bean value via c if
I'm stumped. I have a property set in my bean that I can access via a form on my jsp:
<p> <b class="textBold">Is Locked </span>:</b>
<html:text maxlength="11" size="11" property="user.isLocked" />
</p>
but when I try to access a hidden property or EL element, I can't - it shows as empty using this:
<html:hidden property="isLocked" value='${user.isLocked}' />
<c:if test='${isLocked}'>
<p>false:: '${user.isLocked}'</p>
</c:if>
<c:if test="${!isLocked}">
<p>true :: '${user.isLocked}' </p>
</c:if>
Where am I going wrong? Can someone please tell me what I need to fix in my syntax?
+3
source to share