centos操作系统 、Tomcate6 服务器,运行一段时间后有几个Action报 404错误No result defined for action and result input前端用了 urlrewrite 做伪静态 <rule>
<from>/desktop/index</from>
<to>/desktop/index.action</to>
</rule>Action配置 :<action name="index" class="deskTopAction" method="search">
<result>desktop.jsp</result>
<result name="login">../login.jsp</result>
</action>Action类方法 :public String search(){
member = (Member)this.httpSession.getAttribute("curMember");
if(member == null){//游客身份登录 ,暂时去掉
return "login";
}
this.httpSession.setAttribute("CurQQMember",member);
islogin = "1";
return "success";
}
1 回答

慕斯709654
TA贡献1840条经验 获得超5个赞
No result defined for action and result input
好像是前端提交的什么请求缺了数据还是缺了参数,struts会自动跳到“input”那个结果去,你没有配置input,就报错了,LZ可以仔细检查一下参数有没有可能缺失
添加回答
举报
0/150
提交
取消