M
Mongoose
Hi All,
I have a table created on my .jsp and I'm trying to pass the id of the
row of the table to my execute method of my Action Class in Struts.
When I try to pass the id with the <html:hidden> tag with the
following code I always get the first ID value. Can someone explain
to me how to do this?
Thanks!
A
<c:forEach items="${Defects}" var="myCollection"
varStatus="loopStatus">
<html:hidden property="defectid" value="$
{myCollection.defectid}"/>
<td><cut value="${myCollection.defectid}"/></td>
<td><cut value="${myCollection.description}"/></td>
<td><cut value="${myCollection.priorityid}"/><br></td>
<td><cut value="${myCollection.reportdatetime}"/><br></td>
<td><cut value="${myCollection.reporteruserid}"/></td>
<td><cut value="${myCollection.functionalareaid}"/><br></
td>
<td><cut value="${myCollection.statusid}"/><br></td>
<td><html:submit property="actionButton" value="Update"
styleClass="submit" /></td>
<td><html:submit property="actionButton" value="Delete"
styleClass="submit" onclick="return
confirmDelete();"/></td>
</tr>
</c:forEach>
I have a table created on my .jsp and I'm trying to pass the id of the
row of the table to my execute method of my Action Class in Struts.
When I try to pass the id with the <html:hidden> tag with the
following code I always get the first ID value. Can someone explain
to me how to do this?
Thanks!
A
<c:forEach items="${Defects}" var="myCollection"
varStatus="loopStatus">
<html:hidden property="defectid" value="$
{myCollection.defectid}"/>
<td><cut value="${myCollection.defectid}"/></td>
<td><cut value="${myCollection.description}"/></td>
<td><cut value="${myCollection.priorityid}"/><br></td>
<td><cut value="${myCollection.reportdatetime}"/><br></td>
<td><cut value="${myCollection.reporteruserid}"/></td>
<td><cut value="${myCollection.functionalareaid}"/><br></
td>
<td><cut value="${myCollection.statusid}"/><br></td>
<td><html:submit property="actionButton" value="Update"
styleClass="submit" /></td>
<td><html:submit property="actionButton" value="Delete"
styleClass="submit" onclick="return
confirmDelete();"/></td>
</tr>
</c:forEach>