You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by shahfazal <fa...@louisiana.edu> on 2003/12/26 01:49:53 UTC

check box values get from collection (clearer version)

Hi
I have to display rows based on an SQL query. i have the value objects 
returned in a collection. while iterating thru the collection i have to 
display a checkbox at the startingof the row with a value that is one of 
the properties of the Value object. i wrote something like

<logic:iterate id="appList" name="incompleteFolderForm" 
property="applications">
   <tr>
   <td class="ContentGray">
<html:checkbox property="applicationIds" value="<bean:write name="appList" 
property="applicantId"/>"></html:checkbox>
   </td>
   <td class="ContentGray" ><bean:write name="appList" 
property="lastName"/>,<bean:write name="appList" property="firstName"/></td>
...
</logic:iterate>

i have a IncompleteFolderForm bean that has a getApplications() method 
which returns a Collection of ApplicationVO value Objects.

i thought the value attribute in html:checkbox will take in the bean:write 
and set the applicantId as teh value to that checkbox (like we can do in 
webworks)..and thus iterate thru the whole applications collection w/ each 
checkbox havign a value of its application id but it's not going good .. it 
points to the html:checkbox line and says equal symbol expected .. i'm not 
sure if i'm doign it right ..would be great if anyone could help .. thanx a lot



Regards..

Shahfazal Mohammed
Research A$$i$tant
Center for Business and Information Technologies
http://www.cbit.louisiana.edu
337.482.0626 work
337.322.1946 cell
337.233.1092 home 


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