HTTP Status 404 - No result defined for action action.UsersAction and result input
type Status report
message No result defined for action action.UsersAction and result input
description The requested resource is not available.
Apache Tomcat/8.0.33
type Status report
message No result defined for action action.UsersAction and result input
description The requested resource is not available.
Apache Tomcat/8.0.33
2016-06-07
用Maven搭起来了的平台,避免了jar包冲突的问题。然后跟着老师的视频做了一遍,感觉受益良多。
整个项目源码:https://github.com/Hanson-Hao-Wu/studentsInformationManagement
希望对大家有帮助。
整个项目源码:https://github.com/Hanson-Hao-Wu/studentsInformationManagement
希望对大家有帮助。
2016-06-07
//使用模型驱动获取从表单提交过来的信息
public String add(){
StudentsDAO studentsDAO = new StudentsDAOImpl();
studentsDAO.addStudent(student);//使用模型驱动获取从表单提交过来的信息
return "add_success";
}
public String add(){
StudentsDAO studentsDAO = new StudentsDAOImpl();
studentsDAO.addStudent(student);//使用模型驱动获取从表单提交过来的信息
return "add_success";
}
2016-06-07
把加1后的整数变成字符串,使用StringBuffer的replace方法,只需一步即可完成:
StringBuffer sb = new StringBuffer("S0000000");//提前定义好的StringBuffer
...中间都一样...
else{
...中间都一样...
temp = String.valueOf(i);
sb.replace(8-temp.length(), 8, temp);//取代末尾
sid = sb.toString();
}
return sid;
StringBuffer sb = new StringBuffer("S0000000");//提前定义好的StringBuffer
...中间都一样...
else{
...中间都一样...
temp = String.valueOf(i);
sb.replace(8-temp.length(), 8, temp);//取代末尾
sid = sb.toString();
}
return sid;
2016-06-07
建立了一个Maven项目的包,有兴趣的童鞋可以参考下:
https://github.com/Hanson-Hao-Wu/studentsInformationManagement
https://github.com/Hanson-Hao-Wu/studentsInformationManagement
2016-06-06
警告: Could not find action or result: /homework/students/Students_query.action
There is no Action mapped for namespace [/] and action name [Students_query] associated with context path [/homework]. - [unknown location]
There is no Action mapped for namespace [/] and action name [Students_query] associated with context path [/homework]. - [unknown location]
2016-06-05