报java.lang.NoSuchMethodException:com.action.StudentAction.st
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/16 19:36:56
报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 这个错 求答
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 这个错 求答
Struts是区分大小写的,你配置里面全是小写.
但是你的类名和方法名都是大写开头的!
但是你的类名和方法名都是大写开头的!
Caused by%3A java.lang.NoSuchMethodException
java.lang.RuntimeException:Invalid action class configuratio
java.lang.Exception, java.lang.RuntimeException, java.lang.E
java.lang.ClassCastException: java.lang.Long
java.lang.NumberFormatException:null java.lang.NumberFormatE
java.lang.SecurityException是什么意思
java.lang.illegalstateexception
java.lang.IllegalStateException异常
java.lang.IllegalArgumentException是什么意思
java.lang.InstantiationException是什么意思
java.lang.NullPointerException错误
Java.lang.outofmemovyerror是什么意思