You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vijay K Anand <r1...@freescale.com> on 2005/07/07 11:12:57 UTC
logic iterate
Hi All
I have a problem in logic iterate .. I would like to dispaly checkbox
in each row of the iteration like
<td> <html:checkbox property="dd"></html:checkbox> </td>
instead of
<td><input type='checkbox' name='dd'></td>
Any help brothers??
Here goes the code ....
<logic:present name="users" scope="request">
<logic:iterate id="user" name="users" scope="request">
<tr>
<td><input type='checkbox' name='dd'></td>
<td> <bean:write property="strCoreID" name="user"/> </td>
<td> <bean:write property="strName" name="user"/> </td>
<td> <bean:write property="strDepartment"
name="user"/> </td>
<td> <bean:write property="strSupervisorName"
name="user"/> </td>
</tr>
</logic:iterate>
</logic:present>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: logic iterate
Posted by Borislav Sabev <b....@eventsoft.de>.
Why don't you try Struts-Layout(http://struts.application-servers.com/)?
it's very nice library ..I use it and I have a special tag for this
<layout:checkBox> for every bean in the collection.
Borislav
Laurie Harper wrote:
> Why can't you just change your JSP? In other words, why does the
> markup you would like to use not work for you? It looks fine to me.
>
> L.
>
> Vijay K Anand wrote:
>
>> Hi All
>> I have a problem in logic iterate .. I would like to dispaly
>> checkbox in each row of the iteration like
>>
>> <td> <html:checkbox property="dd"></html:checkbox> </td>
>>
>> instead of
>>
>> <td><input type='checkbox' name='dd'></td>
>>
Re: logic iterate
Posted by Laurie Harper <la...@holoweb.net>.
Why can't you just change your JSP? In other words, why does the markup you
would like to use not work for you? It looks fine to me.
L.
Vijay K Anand wrote:
> Hi All
> I have a problem in logic iterate .. I would like to dispaly checkbox
> in each row of the iteration like
>
> <td> <html:checkbox property="dd"></html:checkbox> </td>
>
> instead of
>
> <td><input type='checkbox' name='dd'></td>
>
> Any help brothers??
>
> Here goes the code ....
>
> <logic:present name="users" scope="request">
> <logic:iterate id="user" name="users" scope="request">
> <tr>
>
> <td><input type='checkbox' name='dd'></td>
> <td> <bean:write property="strCoreID"
> name="user"/> </td>
> <td> <bean:write property="strName" name="user"/>
> </td>
> <td> <bean:write property="strDepartment"
> name="user"/> </td>
> <td> <bean:write property="strSupervisorName"
> name="user"/> </td>
> </tr>
> </logic:iterate>
> </logic:present>
--
Laurie, Open Source advocate, Java geek and novice blogger:
http://www.holoweb.net/~laurie/
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org