anchor.diff:  
       <ww:url id="addFiletypePatternUrl" action="repositoryScanning" method="addFiletypePattern" />
   
  -    <c:forEach items="${fileTypeIds}" var="filetypeId">
  +    <c:forEach items="${fileTypeIds}" var="filetypeId" varStatus="j">
   
         <div class="filetype">
   
  
positive.code:   
    function addFiletypePattern(filetypeId, newPatternId)
    {
       var f = document.getElementById('filetypeForm');
       
       f.action = "${addFiletypePatternUrl}";
       f['pattern'].value = document.getElementById(newPatternId).value;
       f['fileTypeId'].value = filetypeId;
       f.submit();
    }
  //-->
  
negative.code:         <tr>
            <td>
              <ww:textfield size="40" 
                            id="newpattern_${j.index}"
                            theme="simple" />
            </td>
            <td>
              <ww:a href="#" 
                    title="Add Pattern to [${filetypeId}]"
                    onclick="addFiletypePattern( '${filetypeId}', 'newpattern_${j.index}' )"
                    theme="simple">
                <img src="${iconCreateUrl}" />
              </ww:a>
  