Hi there !

Thank all of you for all your inputs and hints.
I made it working.

What I had to do is to add another property to form bean 'id' and put Struts
form tag INSIDE iterator tag. Without the last change I always see id of the
first record.

<table border="1">
<logic:iterate id="element" type="com.wrox.pjsp2.struts.common.GeoEntity"
name="<%= Constants.GEO_ENTITY_LIST %>">
 <html:form action="/showGeoEntities.do">
        <tr>
    <td>
     <html:submit property="action" value="Details"/>
    <html:hidden name="element" property="id"/>
   </html:submit>
    </td>
          <td>
    <bean:write name="element" property="id"/>
          </td>
          <td>
    <bean:write name="element" property="name"/>
          </td>
        </tr>
 </html:form>
</logic:iterate>
</table>

    Thanks once more for your help

    Jerzy Kalat

Reply via email to