struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shahfazal <fa...@louisiana.edu>
Subject check box values get from collection
Date Fri, 26 Dec 2003 00:41:52 GMT
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


---------------------------------------------------------------------
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