【发布时间】:2013-08-16 04:51:32
【问题描述】:
我正在使用 Spring MVC <form:radiobuttons> 来显示单选按钮:
<form:radiobuttons path="selection" items="${arraySelection}" />
但是,它会水平显示它们。生成的HTML如下:
<span>
<input id="selection1" type="radio" value="0"" name="selection">
<label for"selection1">Off</label>
</span>
<span>
<input id="selection2" type="radio" value="1"" name="selection">
<label for"selection2">On</label>
</span>
如何垂直显示它们?
【问题讨论】:
-
请不要将 JSTL 与 Spring MVC 中的任意第 3 方 JSP 标签库混淆。要了解 JSTL 的真正含义,请仔细阅读 stackoverflow.com/tags/jstl/info 的介绍 我从问题中删除了不相关的
[jstl]标记(并清理了一些糟糕的英语/术语)。
标签: html css jsp spring-mvc