【发布时间】:2010-10-05 17:23:45
【问题描述】:
假设我有以下命令对象:
class BreakfastSelectCommand{
List<Breakfast> possibleBreakfasts;
Breakfast selectedBreakfast;
}
如何让春季用列表中的早餐填充“selectedBreakfast”?
我想我会在我的 jsp 中做这样的事情:
<form:radiobuttons items="${possibleBreakfasts}" path="selectedBreakfast" />
但这似乎不起作用。有什么想法吗?
谢谢,
-摩根
【问题讨论】:
标签: spring data-binding spring-mvc