struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shantanu Deo" <s...@nc.rr.com>
Subject Using Input Button inside a Iterate Tag
Date Sat, 06 Dec 2003 17:42:42 GMT
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


Mime
View raw message