欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

关于页面刷新问题_html/css_WEB-ITnose

程序员文章站 2022-05-24 09:49:23
...
制作网页的时候,页面上的表格在刷新之后会变成两个。


像图片上一样会变成两行。



${teacherCheckStudentList.title}
${teacherCheckStudentList.realname}
${teacherCheckStudentList.resultId}
同意






try {
List teacherCheckStudentList = new ArrayList();
teacherCheckStudentList = userService.tCS(teaId);
ActionContext.getContext().getSession().put("TeacherCheckStudentList", teacherCheckStudentList);
result = "teacherCheckStudent";
} catch (Exception e) {
return ERROR;}


回复讨论(解决方案)

个人觉得 你应该在每次执行前 先把list清空下,再赋值

你的list要放在方法里面定义

楼上正解。竟然没发现,纠结了两天。