This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display dynamically checkboxes to particular columns in a row.

 
Prathap Mullaguri
Greenhorn
Posts: 3
  • 0
  • 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
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are printing a table row tag with each iteration.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic