HTTP Status 404 - No result defined for action com.project.web.action.PersonAction and result succtype Status reportmessage No result defined for action com.project.web.action.PersonAction and result successdescription The requested resource (No resu
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 23:56:57
HTTP Status 404 - No result defined for action com.project.web.action.PersonAction and result succtype Status reportmessage No result defined for action com.project.web.action.PersonAction and result successdescription The requested resource (No resu
HTTP Status 404 - No result defined for action com.project.web.action.PersonAction and result succ
type Status report
message No result defined for action com.project.web.action.PersonAction and result success
description The requested resource (No result defined for action com.project.web.action.PersonAction and result success) is not available.
在我的项目里配置了hibernate和struts2,运行的时候出现了这样的错误.
我的struts.xml配置文件是这样子的:
log
page/login_struts2.jsp
/page/manage.jsp
/page/register.jsp
/page/manage.jsp
我的action是这样的:
public String login() {
Map request = (Map) ActionContext
.getContext().get("request");
Person pn = biz
.searchPerson(person.getUsername(), person.getPassword());
if (pn == null) {
request.put("message", "登录失败");
return "fail";
} else {
request.put("message", "登录成功");
return SUCCESS;
}
}
它进入了action,运行最后报了错.求大神.
HTTP Status 404 - No result defined for action com.project.web.action.PersonAction and result succtype Status reportmessage No result defined for action com.project.web.action.PersonAction and result successdescription The requested resource (No resu
log
page/login_struts2.jsp
log和page/login_struts2.jsp前面是否需要加“/”