为了账号安全,请及时绑定邮箱和手机立即绑定

Tomcate6 运行一段时间后 某些Action 报 404错误

Tomcate6 运行一段时间后 某些Action 报 404错误

噜噜哒 2019-03-22 18:15:45
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可以仔细检查一下参数有没有可能缺失


查看完整回答
反对 回复 2019-04-29
  • 1 回答
  • 0 关注
  • 498 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号