tags:

views:

12

answers:

1

Hi

In the Struts2 application in the jsp page I have a feild where the user can select what ever option he want , i used struts:checkboxlist like this

<s:checkboxlist name="cust.communityList" label="Are You Inteterested In"  
    list="{'WebSpere Consultuing','Portal Consulting','SOA/BPM Consulting','Content Management',
       'DataPower Consulting','Information Management Services','Application Monitoring','Application Security',
       'Migration to WebSphere','Application Testing','WebSphere Version Upgrade','JAM/Panther Consulting','IBM Software Procurement','XMLink/Progressions','Other'}" />

It is working fine . But in the browser it's look is not good , It dispalying the list elements in a row wise one after the other ,then in the next row ....

I wanted to display them ,2 in the first row ,next 2 items in the second row ans so on ...

How can i display the checkboxlist items in that way ?

A: 

You can change the theme for the checkbox OR you can extend the theme and then change it.

Look in your /template/simple/checkboxlist.ftl for the base checkboxlist template.

For info on overriding templates see: http://struts.apache.org/2.0.11/docs/template-loading.html