前后端传递参数是靠model为载体传递的。 model.addAttribute("channel",channel); 也就两个参数前面是参数名 后面的是值对象
在页面中使用也是简单
<select name="channelId" id="channelId" class="input-xlarge"> <option value="" name=""></option> <c:if test="${orgChannelDealer.channelId!=null}"> <option selected="selected" value="${orgChannelDealer.channelId}">${orgChannelDealer.channelName}</option> </c:if> <c:forEach items="${channel}" var="channelD"> <option value="${channelD.id}">${channelD.channelName}</option> </c:forEach> </select>