报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误action:public class StudentAction extends ActionSupport{public String StudentInformation(){HttpServletRequest req = ServletActionContext.getRequest();StudentInfo
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/02 18:31:56
![报java.lang.NoSuchMethodException:com.action.StudentAction.studentInformation()错误action:public class StudentAction extends ActionSupport{public String StudentInformation(){HttpServletRequest req = ServletActionContext.getRequest();StudentInfo](/uploads/image/z/14822891-35-1.jpg?t=%E6%8A%A5java.lang.NoSuchMethodException%3Acom.action.StudentAction.studentInformation%28%29%E9%94%99%E8%AF%AFaction%EF%BC%9Apublic+class+StudentAction+extends+ActionSupport%7Bpublic+String+StudentInformation%28%29%7BHttpServletRequest+req+%3D+ServletActionContext.getRequest%28%29%3BStudentInfo)
报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是区分大小写的,你配置里面全是小写.
但是你的类名和方法名都是大写开头的!