java - Spring mvc passes a list to the page for rendering. The page has a save button and then passes the list back to the background. How to achieve
高洛峰
高洛峰 2017-05-17 10:00:42
0
1
470

method

@RequestMapping(value="distributionRoom")
public String distributionRoom(AppjwInvigilatePlan appjwInvigilatePlan,Model model){
    List<AppjwInvigilatePlan>roomTeacher=this.appJwJkjsjlExtendService.getTeacherRanndomRoom(appjwInvigilatePlan);
    model.addAttribute("roomTeacher", roomTeacher);
    return "apps/jw/jkjsjl/appJwJkjsjlArrangeTeacherRoomList";
}

page

                        <c:forEach items="${roomTeacher}" var="appjwInvigilatePlan">
                            <c:forEach items="${appjwInvigilatePlan.appJwJsglList}" var="jsgl" varStatus="vs">
                                <tr>
                                    <td>${appjwInvigilatePlan.appJwJxXqgl.xqmc}</td>
                                    <td>${appjwInvigilatePlan.appJwKsap.ksmc}</td>
                                    <td>${appjwInvigilatePlan.appJwJxKm.kmmc}</td>
                                    <td>${jsgl.ksmc}</td>
                                    <td>
                                <c:forEach items="${jsgl.userList}" var="teacher">
                                    ${teacher.name}
                                </c:forEach>
                                   </td>
                                   <td>
                                    <fmt:formatDate value="${appjwInvigilatePlan.jkkssj}" pattern="yyyy-MM-dd HH:mm:ss"/>
                                   </td>
                                   <td>
                                    <fmt:formatDate value="${appjwInvigilatePlan.jkjssj}" pattern="yyyy-MM-dd HH:mm:ss"/>
                                   </td>
                                </tr>
                            </c:forEach>
                        </c:forEach>
                    
高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
阿神

Write this traversal loop into the form, create a table in the form, write it in the table, add a method to the save button of the page, and submit the form when clicked.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template