為什么我的默認(rèn)Action設(shè)置不出來?
<struts>
? ?<!-- 使用通配符的方式解決一個Action對應(yīng)多個處理請求的問題 -->
? ? <package name="default" namespace="/" extends="struts-default">
? ? ? <default-action-ref name="index"></default-action-ref> ?
? ? ? ? ?<action name="index">
? ? ? ? ? ?<result>/error.jsp</result>
? ? ? ? ?</action>
? ? ? ? ?
? ? ? ?<action name="*_*" ?method="{2}" class="day.{1}tion">
? ? ? ? ? <result>/result.jsp</result>
? ? ? ? ? <result name="add">/{2}.jsp</result>
? ? ? ? ? <result name="updata">/{2}.jsp</result>
? ? ? ?</action>
? ? </package>
</struts>
要是單獨(dú)放在另一個包里有回不去原先正確的頁面了
2015-12-10
您好,不太明白您的問題,還請詳細(xì)描述。