• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display dynamically checkboxes to particular columns in a row.

 
Prathap Mullaguri
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Experts,

I am using logic:iterate to display checkboxes and able to display them one by one using as below

<tr>
<logic:iterate id="a" name="list1" scope="request" indexId="idx" type="com.dbobject.dbclass">
<tr><td class="left" ><input type="checkbox" class ="checkbox" name="typename" value="<%= a.getTypeName() %>"/><bean:write name="a" property="TypeName"/></td> </tr>
</logic:iterate>
</tr>

But i want to display 3 checkboxes in each row.

Can anyone help me on this how to display 3 checkboxes in a row and so on. I tried by using index but not getting.. Thanks in Advance..
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are printing a table row tag with each iteration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic