您的位置:首页 > 运维架构 > Tomcat

Tomcat 启动时 There is no Action mapped for namespace [/] and action name [] associated with context pa

2015-10-13 10:06 676 查看
Tomcat 启动时 There is no Action mapped for namespace [/] and action name [] associated with context path []. - [unknown location]

问题:

struts.xml中:

<struts>

    <package name="default" extends="struts-default" namespace="/">

        <action name="loginPage" class="com.lc.test.action.LoginAction" method="loginPage">

            <result name="success">/loginPage.jsp</result>        

        </action>

    </package>

</struts>

loginPage.jsp文件在WEB-INF目录下,系统找不到这个文件,会出现这个问题。

解决:把这个文件放到WEB-INF同一个目录下。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: