A question on Struts taglib.
Can someone tell me how to reference the "index" of each element so I can
pass it as a parameter with the <a href> path string?

For example I have the following code, I want to print out 'partNumber' and
'partDescription' and a <a href'> with index of each element'.

  <logic:iterate id="parts"
collection="<%=ShopWorkOrderFormBean.getShopWorkOrder().getPartList()%>"
type="com.cat.sdl.fdd.dataBean.shopWorkOrder.PartBean"></td>
<tr>
  <td class="formCell"><bean:write name="parts"
property="partNumber"/>&nbsp;</td>
  <td class="formCell"><bean:write name="parts" property="'partDescription'
"/>&nbsp;</td>
  <td class="formCell">
       <a href="app/fdd/shopWorkOrder/UpdatePart.exec?index=<How to
reference the index here????>">
          <img src="images/iconEdit.gif"></a>&nbsp;

    </td></tr>
</logic:iterate>

Thanks in advance!

Stella

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to