diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/UserController.class b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/UserController.class
index b35f481..5a98f97 100644
Binary files a/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/UserController.class and b/project2/out/artifacts/project2_war_exploded/WEB-INF/classes/cyou/chenx221/controller/UserController.class differ
diff --git a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp
index 7fd90cb..3a1ace2 100644
--- a/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp
+++ b/project2/out/artifacts/project2_war_exploded/WEB-INF/views/dashboard.jsp
@@ -44,17 +44,11 @@
学生信息查询
学生信息修改(旧)
学生信息修改
- 自己输入sql语句查(划掉,没做)
成绩查看
成绩管理
- 学生成绩管理
-
-
-
- 学生选课管理
diff --git a/project2/src/main/java/cyou/chenx221/controller/UserController.java b/project2/src/main/java/cyou/chenx221/controller/UserController.java
index e7c68a2..4d4696a 100644
--- a/project2/src/main/java/cyou/chenx221/controller/UserController.java
+++ b/project2/src/main/java/cyou/chenx221/controller/UserController.java
@@ -78,13 +78,17 @@ public class UserController {
}
@RequestMapping(path = "/user/usermanage", method = {RequestMethod.GET})
- public String userManage(Model model) {
+ public String userManage(@RequestParam(value = "successMessage", required = false, defaultValue = "null") String successMessage,
+ @RequestParam(value = "errorMessage", required = false, defaultValue = "null") String errorMessage,
+ Model model) {
String username = new UsernameHelper().getCurrentUsername();
if (username != null) {
model.addAttribute("username", username);
}
List userList = userMapper.getAllUsers();
model.addAttribute("userList", userList);
+ model.addAttribute("successMessage", successMessage);
+ model.addAttribute("errorMessage", errorMessage);
return "usermanage";
}