日期:2014-05-19  浏览次数:20638 次

是不是struts配置的问题????急!!求救!!
想向各位高手们请教一下为何我每次运行时都没有执行AddPersionAction的呢?我运行add.jsp时,总是执行这个<result name="root">/WEB-INF/content/error.jsp</result>的,而没有进到action里,谁能说说是什么毛病啊!!!
----struts.xml文件----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN"
"http://struts.apache.org/dtds/struts-2.1.7.dtd">

<struts>

<constant name="struts.custom.i18n.resources" value="resource" />
<constant name="struts.i18n.encoding" value="UTF-8" />
<constant name="struts.devMode" value="true" />

<package name="person" extends="struts-default">
<interceptors>
<interceptor name="adminAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.AdminAuthorityInterceptor" />
<interceptor name="chiefAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.ChiefAuthorityInterceptor" />
<interceptor name="instructorAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.InstructorAuthorityInterceptor" />
<interceptor name="judgeAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.JudgeAuthorityInterceptor" />
<interceptor name="personAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.PersonAuthorityInterceptor" />
<interceptor name="studentAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.StudentAuthorityInterceptor" />
<interceptor name="superAdminAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.SuperAdminAuthorityInterceptor" />
<interceptor name="teacherAuth"
class="cn.edu.scnu.cs.scnupm.action.authority.TeacherAuthorityInterceptor" />

<interceptor-stack name="adminStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="adminAuth" />
</interceptor-stack>

<interceptor-stack name="chiefStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="chiefAuth" />
</interceptor-stack>

<interceptor-stack name="instructorStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="instructorAuth" />
</interceptor-stack>

<interceptor-stack name="judgeStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="judgeAuth" />
</interceptor-stack>

<interceptor-stack name="personStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="personAuth" />
</interceptor-stack>

<interceptor-stack name="studentStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="studentAuth" />
</interceptor-stack>

<interceptor-stack name="superAdminStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="superAdminAuth" />
</interceptor-stack>

<interceptor-stack name="teacherStack">
<interceptor-ref name="defaultStack" />
<interceptor-ref name="teacherAuth" />
</interceptor-stack>
</interc