You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Shantanu Deo <sd...@nc.rr.com> on 2003/12/06 18:42:42 UTC

Using Input Button inside a Iterate Tag

What is the mechanics of using the Input button inside of the Iterate tag.


I have my JSP as

<html:form action="/action/dispatchEmployeeAction.do">
<table>
 <TR>
       <th>Number</th>
       <th>First Name</th>
       <th>Last Name</th>
       <th>Telephone Count</th>
     <th>Address</th>
 </TR>
 <logic:iterate name="employeeList" id="employee" indexId="empNumber"
type="com.innovate.test.Employee">
  <TR>
     <TD><bean:write name="empNumber"/></TD>
     <TD><bean:write name="employee" property="fname"/></TD>
     <TD><bean:write name="employee" property="lname"/></TD>
     <TD><bean:write name="employee" property="telephoneNumberCount"/></TD>
     <TD><bean:write name="employee" property="fullAddress"/></TD>
     <TD>
          <html:image page="/images/Delete_Button.gif"
property="employee_delete"  indexed="true" />
     </TD>
     <TD>
          <html:image page="/images/Update_Button.gif"
property="employee_update" indexed="true" />
     </TD>
</logic:iterate>
</table>
<html:submit value="Create Employee" property="theAction"/>
</html:form>


What should my corresponding code in Action be to recognize which of the
delete/update buttons are clicked.

Thanks in advance
Shantanu



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org