Spring form标签 Select 根据后台传值 动态选中






 



itemLabel="${screpairs.repairsType}" :对应下拉框的标签值(动态默认选中)

 path="orderType":对应表单对象属性值(即scRepairs.orderType)

items="${orderTypes}" :下拉框选项的数据(List、Map、Set)

itemValue="eleCode":对应元素的键

itemLabel="eleName":对应元素的值


@RequestMapping(value="/Modify*")
public String Modify(@ModelAttribute("scRepairs")ScRepairs scRepairs, HttpServletRequest request,
            HttpServletResponse response){

}

你可能感兴趣的:(Spring)