aspose file tools*
The moose likes Struts and the fly likes Display dynamically checkboxes to particular columns in a row. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Display dynamically checkboxes to particular columns in a row." Watch "Display dynamically checkboxes to particular columns in a row." New topic
Author

Display dynamically checkboxes to particular columns in a row.

Prathap Mullaguri
Greenhorn

Joined: Jul 03, 2013
Posts: 2
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

Joined: Oct 29, 2001
Posts: 8927
    
    9

You are printing a table row tag with each iteration.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display dynamically checkboxes to particular columns in a row.