anchor.diff:              <td>
                 <c:out value="${names[con]}"/>
               </td>
  -            <td>
  -              <html:select property="attributeOps(${index})">
  +            <td valign="top">
  +              <html:select property="attributeOps(${index})" onchange="updateConstraintForm(${index-1}, document.templateForm['attributeOps(${index})'], document.templateForm['attributeOptions(${index})'], document.templateForm['attributeValues(${index})'])">
                   <c:forEach items="${ops[con]}" var="op">
                     <html:option value="${op.key}">
                       <c:out value="${op.value}"/>
  
positive.code:                 </c:forEach>
                </html:select>
              </td>
              <td>
                <html:text property="attributeValues(${index})"/>
              </td>
            </tr>
          </c:forEach>
  
negative.code: <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
  
  <tiles:importAttribute/>
  
  <script type="text/javascript">
    <!--
  
    var fixedOps = new Array();
  
    /***********************************************************
     * Called when user chooses a constraint operator. If the
     * user picks an operator contained in fixedOptionsOps then
     * the input box is hidden and the user can only choose
     **********************************************************/
    function updateConstraintForm(index, attrOpElement, attrOptsElement, attrValElement)
    {
      if (attrOptsElement == null)
        return;
  
      for (var i=0 ; i<fixedOps[index].length ; i++)
      {
        if (attrOpElement.value == fixedOps[index][i])
        {
          document.getElementById("operandEditSpan" + index).style.display = "none";
          attrValElement.value = attrOptsElement.value; // constrain value
          return;
        }
      }
  
      document.getElementById("operandEditSpan" + index).style.display = "";
    }
  
    /***********************************************************
     * Init attribute value with selected item and hide input box if
     * required
     **********************************************************/
    function initConstraintForm(index, attrOpElement, attrOptsElement, attrValElement)
    {
      if (attrOptsElement == null)
        return;
  
      attrValElement.value = attrOptsElement.value;
      updateConstraintForm(index, attrOpElement, attrOptsElement, attrValElement);
    }
  
    //-->
  </script>
  
  
  <div class="body">
    <html:form action="/templateAction">
  