问答详情
源自:-

action找不到的问题,用的是评论去的jar

HTTP Status 404 - There is no Action mapped for namespace [/] and action name [student_save] associated with context path [/sshTest].

type Status report

message There is no Action mapped for namespace [/] and action name [student_save] associated with context path [/sshTest].

description The requested resource (There is no Action mapped for namespace [/] and action name [student_save] associated with context path [/sshTest].) is not available.


路径是没输入错的,jsp也是可以访问的,就是action访问不了


<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
    <package name="test" extends="struts-default" namespace="/">
        <action name="student_*" class="com.ssh.action.StudentAction" method="{1}">
            <result>/index.jsp</result>
        </action>
    </package>
</struts>    

这个是struts的配置


提问者:你庄哥哥 2016-10-16 22:57

个回答

  • 你庄哥哥
    2016-10-17 16:48:06

    环境问题,已经解决