提交机构的显示数组
(1).velocity中遍历一个Map<String,Object>ci
#foreach($result in ${resultMap.entrySet()})string
$result.keyit
$result.valueio
#endforeach
(2).循环显示出查询的course(List)List
#foreach($v in $courseList)select
$v.id //获取当前course的id循环
#end遍历
当$result.key==$v.id 的时候,显示出$v.name $v.courseStar
选择提交班级后须要相应的显示班级的课程
取$result.value,先将其使用substring截取第一个和最后一个,变成一个string
最后使用split进行分割后成为一个数组array
将数组遍历出来,显示
若是已经为提交班级,查看时须要显示当前的提交班级以及班级课程
将当前显示的班级中选中显示
<option value="$v.id" arrayValue="$result.value" #if(${course.迪}==$v.id) selected #end>$v.name $vcourseStar</option>