Displaying Checkboxlist vertically Struts 2

In our recent project we faced a problem to display checkboxlist vertically. It is easy to display them horizontally, But there is no tag in struts2 with the help of which we can display it vertically. 

Struts 2 comes with freemaker templates, In order to change the default horizontal style of printing checkboxlist, You have to edit the checkboxlist.ftl present inside the struts2-core-2.1.6.jar file(template\simple directory).

Open the checkboxlist.ftl file and insert a <br> before the </div></@s.iterator>. Save the file and create the jar file by same name and replace it your application jar library.

More stories on struts2

struts2 Interview questions - I 

File Download Issue in Internet Explorer - Struts2

No comments:

Post a Comment