stuts-security.xml

<?xml version="1.0" encoding="UTF-8" ?>
   <!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
    "http://struts.apache.org/dtds/struts-2.3.dtd">
    
<struts>
    <package name="security" namespace="/security" extends="struts-default">
        <action name="user" class="userAction">
            <result name="add">/WEB-INF/jsp/security/user/add.jsp</result>
            <result name="update">/WEB-INF/jsp/security/user/update.jsp</result>
            <result name="list">/WEB-INF/jsp/security/user/list.jsp</result>
            <result name="listAction" type="redirect">/security/user!findPage.action</result>
            <result name="updateAction" type="redirect">/security/user!toUpdate.action?id=${id}</result>
            <result name="index" type="redirect">/index.jsp</result>
            <result name="login" type="redirect">/login.jsp</result>
        </action>
        <action name="role" class="roleAction">
            <result name="add">/WEB-INF/jsp/security/role/add.jsp</result>
            <result name="update">/WEB-INF/jsp/security/role/update.jsp</result>
            <result name="list">/WEB-INF/jsp/security/role/list.jsp</result>
            <result name="listAction" type="redirect">/security/role!findPage.action</result>
            <result name="updateAction" type="redirect">/security/role!toUpdate.action?id=${id}</result>
        </action>
        <action name="resource" class="resourceAction">
            <result name="add">/WEB-INF/jsp/security/resource/add.jsp</result>
            <result name="update">/WEB-INF/jsp/security/resource/update.jsp</result>
            <result name="list">/WEB-INF/jsp/security/resource/list.jsp</result>
            <result name="listAction" type="redirect">/security/resource!findPage.action</result>
            <result name="updateAction" type="redirect">/security/resource!toUpdate.action?id=${id}</result>
        </action>
    
        <action name="dept" class="deptAction">
            <result name="add">/WEB-INF/jsp/security/dept/add.jsp</result>
            <result name="update">/WEB-INF/jsp/security/dept/update.jsp</result>
            <result name="list">/WEB-INF/jsp/security/dept/list.jsp</result>
            <result name="listAction" type="redirect">/security/dept!findPage.action</result>
        </action>
        <action name="job" class="jobAction">
            <result name="add">/WEB-INF/jsp/security/job/add.jsp</result>
            <result name="update">/WEB-INF/jsp/security/job/update.jsp</result>
            <result name="list">/WEB-INF/jsp/security/job/list.jsp</result>
            <result name="listAction" type="redirect">/security/job!findPage.action</result>
        </action>
    </package>
        
</struts>    

 

转载于:https://www.cnblogs.com/duwenlei/p/3872753.html

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 扫一扫,分享海报

参与评论 您还未登录,请先 登录 后发表或查看评论
©️2022 CSDN 皮肤主题:编程工作室 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值