struts标签 checkboxlist 默认是不换行的,显示列表会非常丑,百度了一圈解决办法就是要修改源文件
找到struts core的jar包 找到template -simple 找到checkboxlist.ftl这个文件
修改如下
<#--
/*修改s:checkboxlist 增加换行功能;调用方法<S:checkboxlist template="customcheckboxlist.ftl">
*
* $Id: customcheckboxlist.ftl 6484 2009-12-14 02:33:28Z alvis.yeo $
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
*