犯了一个很2的错误
下面忘了写
不然一直报找不到这个action的错误。
借此,希望大家不要跟我一样犯这种小白的错误...呜呜
@Action(value = "scoreManagerAction", results = {
@Result(name = "scoreList", location = "/jsp/system-manage/listScore.jsp"),
@Result(name = "courseScoreList", location = "/jsp/system-manage/listCourseScore.jsp"),
@Result(name = "studentScoreList", location = "/jsp/system-manage/listStudentScore.jsp")
})
下面忘了写
//返回listScore.jsp
public String scoreList(){
return "scoreList"; //不一定要和jsp的名字相同,而是根据@result中的name值对应起来的
}
//返回listCourseScore.jsp
public String courseScoreList(){
return "courseScoreList";
}
//返回listStudentScore.jsp
public String studentScoreList(){
return "studentScoreList";
}
不然一直报找不到这个action的错误。
借此,希望大家不要跟我一样犯这种小白的错误...呜呜