这份Struts2的配置文件那里错了?高手们,等待中ing
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="true" />
<package name="default" namespace="/" extends="struts-default">
<global-results>
<result>
/login.jsp
</result>
</global-results>
</package>
<package name="rootFiles" namespace="/" extends="struts-default">
<action name="login" class="com.kczyw.classmanage.action.Login">
<result name="success" type="redirect">
/index.jsp
</result>
<result name="error" type="redirect">
/login.jsp?Error=1
</result>
</action>
</package>
<package name="student" namespace="/student" extends="struts-default">
<action name="studentclass" class="com.kczyw.classmanage.action.StudentClassAction"
method="list">
<result name="success_0" type="redirect">
/studentList.jsp
</result>
</action>
<action name="student_*" class="com.kczyw.classmanage.action.StudentAction"
method="{1}">
<result name="success_0" type="redirect">
/studentList.jsp
</result>
<result name="success_1">
/studentInfo.jsp
</result>
<result name="success_2">
/studentInfo.jsp
</result>
<result name="error_1" type="redirect">
/studentInfo.jsp?error=1
</result>
<result name="error_2" type="redirect">
/studentInfo.jsp?error=2
</result>
</action>
</package>
<package name="class" namespace="/classes" extends="struts-default">
<action name="class_*" class="com.kczyw.classmanage.action.ClassAction"
method="{1}">
<result name="success_0" type="redirect">
/classList.jsp
</result>
<result name="success_1">
/classInfo.jsp
</result>
<result name="success_2">
/classList.jsp
</result>
<result name="error_1" type="redirect">
/classList.jsp?error=1
</result>
<result name="error_2" type="redirect">
/classList.jsp?error=2
</result>
</action>
</package>
</struts>
--------------------编程问答-------------------- 把异常发出来
补充:Java , Java EE