Here is my code:
<logic:notEmpty name="chDentalPlanForm" property="chDentalPlan">
<logic:iterate id="idental" name="chDentalPlanForm" property="chDentalPlan"
indexId="index">
<table cellpadding="5" cellspacing="1" width="100%" border="1">
<!-- display the dental plan details
</table>
</logic:iterate>
</logic:notEmpty>
<logic:empty name="chDentalPlanForm" property="chDentalPlan">
<p>No Details available </p>
</logic:empty>
The property chDentalPlan is an array. When the array is not empty, the <logic:notEmpty> tag displays all the values correctly. If the array is empty, the "No details Available" message is not displayed. I checked to see if the array is empty using the code:
if (chDentalPlan.length = 0) { }
it is empty. The message gets displayed.
Why does the <logic:empty> not work? Am I doing something wrong? Help!
Note: I tried <logic
resent> around the <logic:empty> also. Did not work.
thanks