程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程解疑 >> struts.xml-Struts.xml的配置有點問題,可就是找不著,新手求多指導!

struts.xml-Struts.xml的配置有點問題,可就是找不著,新手求多指導!

編輯:編程解疑
Struts.xml的配置有點問題,可就是找不著,新手求多指導!

    <global-results>
        <result name="error">/error.jsp</result>

    </global-results>
    <action name="AdminAction" class="com.bzu.action.AdminAction">

        <result name="loginsuccess">/jsp/admin/default.jsp</result>
        <result name="success">/jsp/admin/operaSuccess.jsp</result>
        <result name="input">/jsp/admin/login.jsp</result>
    </action>
    <action name="EmployerAction" class="com.bzu.action.EmployerAction">

        <result name="success"> /jsp/admin/employerlist.jsp</result>

        <result name="deletesuccess" type="redirectAction">EmployerAction!emplyerList</result>//錯誤處“Action EmployerAction!emplyerList cannot be found in the namespace /”
        <result name="dilog"> /jsp/admin/update_employerdilog.jsp</result>
        <result name="operasuccess">/jsp/admin/operaSuccess.jsp</result>
        <result name="worklist">/jsp/admin/todaywork.jsp</result>
        <result name="employerworks" type="redirectAction">EmployerAction!workList</result>錯誤處“Action EmployerAction!workList cannot be found in the namespace /”
        <result name="todayworklist">/jsp/admin/todayworklist.jsp</result>
        <result name="workMap">/jsp/admin/workMap.jsp</result>

    </action>
    <action name="GoodsAction" class="com.bzu.action.GoodsAction">

        <result name="goodslist">/jsp/admin/goodsList.jsp</result>

        <result name="deletesuccess" type="redirectAction">GoodsAction!goodsList</result>錯誤處“Action GoodsAction!goodsList cannot be found in the namespace /”

        <result name="dilog"> /jsp/admin/update_goodsdilog.jsp</result>
        <result name="addGoods"> /jsp/admin/addGoods.jsp</result>

        <result name="operasuccess">/jsp/admin/operaSuccess.jsp</result>

    </action>
    <action name="IntoGoodsAction" class="com.bzu.action.IntoGoodsAction">
        <result name="addIntoGoods"> /jsp/admin/addIntoGoods.jsp</result>
        <result name="operasuccess">/jsp/admin/operaSuccess.jsp</result>
        <result name="intoGoodsList">/jsp/admin/intoGoodList.jsp</result>
        <result name="deletesuccess" type="redirectAction">IntoGoodsAction!intoGoodsList</result>錯誤處“Action IntoGoodsAction!intoGoodsList cannot be found in the namespace /”
        <result name="dialog" >/jsp/admin/updateIntoGoods.jsp</result>
    </action>

    <action name="EmployerWageAction" class="com.bzu.action.EmployerWageAction">

        <result name="employerWageList">/jsp/admin/employerWageList.jsp</result>
        <result name="createWageSuccess">/jsp/admin/operaSuccess.jsp</result>

        <result name="spendlist">/jsp/admin/goodsSpendList.jsp</result>

    </action>

    <action name="InputerAction" class="com.bzu.action.InputerAction">

        <result name="inputerlist">/jsp/admin/inputerList.jsp</result>
        <result name="operasuccess">/jsp/admin/operaSuccess.jsp</result>
        <result name="dilog">/jsp/admin/update_inputer.jsp</result>

    </action>
</package>
就是上面標出來的那些錯,引號裡的是錯誤問題
新手求大神指點

最佳回答:


struts是什麼版本的,stuts2.3後的版本默認不支持動態調用這種方式,需要打開。。

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved