报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误action:public class StudentAction extends ActionSupport{public String StudentInformation(){HttpServletRequest req = ServletActionContext.getRequest();StudentInfo

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/15 02:12:52
报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误action:publicclassSt

报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误action:public class StudentAction extends ActionSupport{public String StudentInformation(){HttpServletRequest req = ServletActionContext.getRequest();StudentInfo
报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误
action:public class StudentAction extends ActionSupport{
public String StudentInformation(){
HttpServletRequest req = ServletActionContext.getRequest();
StudentInfo studentInfo = this.studentService.getStudent(this.stuid);
req.setAttribute("studentInfo",studentInfo);
return "studentInformation";
stuid有get/set方法
xml:
/admin/student/student_list.jsp
/admin/student/student_information
页面就会报NoSuchMethodException 这个错 求答

报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误action:public class StudentAction extends ActionSupport{public String StudentInformation(){HttpServletRequest req = ServletActionContext.getRequest();StudentInfo
Struts是区分大小写的,你配置里面全是小写.
但是你的类名和方法名都是大写开头的!