Hello,
This answer is given by keeping
struts 2 in mind.
To complete this task include required .ftl files in directory suitable to you, and the list of those file is given below:
checkboxlist.ftl
common-attributes.ftl
form-close.ftl
label.ftl
optgroup.ftl
scripting-events.ftl
select.ftl
and after placing these files in a directory change one file that is checkboxlist.ftl
<label for="${parameters.name?html}-${itemCount}" class="checkboxLabel">${itemValue?html}</label>
you just have to replace the code line shown above. I have just added one
BR tag at the end of the line.
and after doing these you have to mention 3 attributes of the <s:checkboxlist tag, and those tags are
templateDir
template
theme
for above things to work I have placed required .ftl files in a path
com/os/util/strutsTemplates/highq
and thats why value of the above given attribute would be
templateDir="com/os/util/strutsTemplates" template="checkboxlist.ftl" theme="highq"
see here my last folder is highq and the same folder name would be the value for the theme attribute. Keep in mind that you have to specify value of the attribute based on the path where you have copied your .ftl files.
I hope above given information will help you to arrange ><s:checkboxlist in a vertical order.
Thanks & Regards,
Ashish>