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

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";
    }


噜噜哒
浏览 499回答 1
1回答

慕斯709654

No result defined for action and result input好像是前端提交的什么请求缺了数据还是缺了参数,struts会自动跳到“input”那个结果去,你没有配置input,就报错了,LZ可以仔细检查一下参数有没有可能缺失
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java