ssh中structs2.xml配置问题,action跳转action带参数带红叉 15
<?xmlversion="1.0"encoding="UTF-8"?><!DOCTYPEstrutsPUBLIC"-//ApacheSoftwareFoundation...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="zhifubao" extends="struts-default" namespace="/Skiyo">
<action name="showlist" class="com.action.Action2" method="showxList">
<result>right.jsp</result></action>
<action name="showzuolist" class="com.action.Action2" method="showzuoxList">
<result>left.jsp</result></action>
<action name="save" class="com.action.Action2" method="save">
<result type="redirectAction">
<param name="actionName">showlist.action</param>
<param name="id2">${id2}</param>
</result></action>
<action name="delete" class="com.action.Action2" method="delete">
<result type="redirectAction">
<param name="actionName">showlist.action</param>
<param name="id2">${id2}</param>
</result></action>
<action name="edit" class="com.action.Action2" method="edit">
<result>bianji.jsp</result></action>
<action name="tianjia" class="com.action.Action2" method="tianjia">
<result>tianjia.jsp</result></action>
</package>
</struts>
这里
<action name="save" class="com.action.Action2" method="save">
<result type="redirectAction">
<param name="actionName">showlist.action</param>
<param name="id2">${id2}</param>
</result></action>
红叉提示说在命名空间找不到showlist.action 展开
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
<package name="zhifubao" extends="struts-default" namespace="/Skiyo">
<action name="showlist" class="com.action.Action2" method="showxList">
<result>right.jsp</result></action>
<action name="showzuolist" class="com.action.Action2" method="showzuoxList">
<result>left.jsp</result></action>
<action name="save" class="com.action.Action2" method="save">
<result type="redirectAction">
<param name="actionName">showlist.action</param>
<param name="id2">${id2}</param>
</result></action>
<action name="delete" class="com.action.Action2" method="delete">
<result type="redirectAction">
<param name="actionName">showlist.action</param>
<param name="id2">${id2}</param>
</result></action>
<action name="edit" class="com.action.Action2" method="edit">
<result>bianji.jsp</result></action>
<action name="tianjia" class="com.action.Action2" method="tianjia">
<result>tianjia.jsp</result></action>
</package>
</struts>
这里
<action name="save" class="com.action.Action2" method="save">
<result type="redirectAction">
<param name="actionName">showlist.action</param>
<param name="id2">${id2}</param>
</result></action>
红叉提示说在命名空间找不到showlist.action 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询