struts2出现错误!
<packagename="default"namespace="/"extends="struts-default"><actionname="Login"class=...
<package name="default" namespace="/" extends="struts-default">
<action name="Login" class="com.caec.action.LoginAction">
<result>/loginSuccess.jsp</result>
<result name="input">/login.jsp</result>
<result name="adminlogin">/adminLoginSuccess.jsp</result>
</action>
<action name="Query" class="com.caec.action.QueryAction">
<result name="query">/queryUser.jsp</result>
</action>
<action name="Regist" class="com.caec.action.RegistAction">
<result name="registsuccess">/registSuccess.jsp</result>
</action>
<action name="Detele" class="com.caec.action.DeteleAction">
<result name="detele">/deteleSuccess.jsp</result>
</action>
</package>
Login和Query都正常,Regist和Detele出现There is no Action mapped for namespace / and action name Regist.的错误。jsp和Action里写的跳转的方法都和 Login、Query是一样的。
求大神! 展开
<action name="Login" class="com.caec.action.LoginAction">
<result>/loginSuccess.jsp</result>
<result name="input">/login.jsp</result>
<result name="adminlogin">/adminLoginSuccess.jsp</result>
</action>
<action name="Query" class="com.caec.action.QueryAction">
<result name="query">/queryUser.jsp</result>
</action>
<action name="Regist" class="com.caec.action.RegistAction">
<result name="registsuccess">/registSuccess.jsp</result>
</action>
<action name="Detele" class="com.caec.action.DeteleAction">
<result name="detele">/deteleSuccess.jsp</result>
</action>
</package>
Login和Query都正常,Regist和Detele出现There is no Action mapped for namespace / and action name Regist.的错误。jsp和Action里写的跳转的方法都和 Login、Query是一样的。
求大神! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询