Title: logic:equal help ?!?

Hi,

I've just started with the logic-library of the Struts framework
I'm using the following code to create a dynamic html-table:

<struts:iterate id="ruleForm" name="ruleForm" property="allRules">
  <tr>
    <td class="iterate">
                <logic:equal name="ruleForm" property="isActive" value="true"/>true</logic:equal>   
        </td>
    <td class="iterate">
      <struts:htmlProperty name="ruleForm" property="rulename"/>
    </td>
    <td class="iterate">
      <struts:htmlProperty name="ruleForm" property="attribute"/>
    </td>
    <td class="iterate">
      <struts:htmlProperty name="ruleForm" property="operator"/>
    </td>
    <td class="iterate">
      <struts:htmlProperty name="ruleForm" property="comparison"/>
    </td>
    <td class="iterate">
      <struts:htmlProperty name="ruleForm" property="mapping"/>
    </td>
  </tr>
</struts:iterate>

No I'm facing the following problem:
my
<logic:equal name="ruleForm" property="isActive" value="true"/>rule true</logic:equal>  
code seems not to work correctly.
My impression is that it doesnt compare the property "isActive" with the value "true".Because I'm always getting the text "rule true" in my table.

Am I using the equal-tag not correctly or am misunderstanding here something terribly ??

Any help would be appreciated.
Thanks in advance.

Mike




Reply via email to