Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use Indexed Fields??

Status
Not open for further replies.

drluft

Programmer
May 23, 2004
3
US
I have a form that uses a collection of objects (a data transfer object) to display a list of data. One of which is a checkbox. I want to get all the rows back on the submit and loop through them to get the ones that they checked to process them. PROBLEM is I can't get anything on the submit.
Here is the form.

<form-bean name="boRequestListForm" type="org.apache.struts.action.DynaActionForm">
<form-property name="results" type="java.util.Collection"/>
<form-property name="requestType" type="java.lang.String"/>
<form-property name="sortBy" type="java.lang.String"/>
<form-property name="submitParam" type="java.lang.String"/>
<form-property name="requestInd" type="java.lang.String"/>
<form-property name="displayHeading" type="java.lang.String" />
<form-property name="methodToCall" type="java.lang.String" />
<form-property name="approveCBX" type="java.lang.String"/>
</form-bean>

Here is a snippet from the jsp:
<logic:iterate id="list" name="boRequestListForm" property="results" type="com.mercury.maos.data.ApprovalDO">
<tr >
<td><bean:write name="list" property="ticketNo"/></td>
<td><bean:write name="list" property="moduleDesc"/> </td>
<td><bean:write name="list" property="plantDesc"/> </td>
<td><html:checkbox indexed="true" name="list" property="approveCBX"/></td>
<td><bean:write name="list" property="roleName"/> </td>
</tr>
<html:hidden indexed="true" name="list" property="requestInd"/>
</logic:iterate>

On submit, the action doesn't get ANYTHING back. Everything is null. HELP PLEASE? What am I doing wrong???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top