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>
stuts-security.xml的更多相关文章
- spring security xml配置详解
security 3.x <?xml version="1.0" encoding="UTF-8"?> <beans:beans xmlns= ...
- Spring Security 从配置入门 学习讲解。万恶之源------------web.xml
这段时间,工作闲了下来,接触了Spring Security,对于我一个基础很差的人来说,无疑是个挑战啊. 经过一段时间的摸索,终于有了点眉目,在这里,要特别感谢http://blog.csdn.ne ...
- SPRING SECURITY JAVA配置:Web Security
在前一篇,我已经介绍了Spring Security Java配置,也概括的介绍了一下这个项目方方面面.在这篇文章中,我们来看一看一个简单的基于web security配置的例子.之后我们再来作更多的 ...
- Spring Security控制权限
Spring Security控制权限 1,配置过滤器 为了在项目中使用Spring Security控制权限,首先要在web.xml中配置过滤器,这样我们就可以控制对这个项目的每个请求了. < ...
- spring security 3.2 配置详解(结合数据库)
没事就来了解下spring security.网上找了很多资料.有过时的,也有不是很全面的.各种问题也算是让我碰了个遍.这样吧.我先把整个流程写下来,之后在各个易混点分析吧. 1.建立几个必要的页面. ...
- 使用Spring Security Oauth2完成RESTful服务password认证的过程
摘要:Spring Security与Oauth2整合步骤中详细描述了使用过程,但它对于入门者有些重量级,比如将用户信息.ClientDetails.token存入数据库而非内存.配置 ...
- Spring3 Security 中配置会话管理
账户登录时,要求一个账户同时只能一人登录,配置中的步骤有三个: 1.在web.xml中配置HttpSessionEventPublisher <listener> <listener ...
- 【Spring】关于Boot应用中集成Spring Security你必须了解的那些事
Spring Security Spring Security是Spring社区的一个顶级项目,也是Spring Boot官方推荐使用的Security框架.除了常规的Authentication和A ...
- Spring Security 3.2.x与Spring 4.0.x的Maven依赖管理
原文链接: Spring Security with Maven原文日期: 2013年04月24日翻译日期: 2014年06月29日翻译人员: 铁锚 1. 概述 本文通过实例为您介绍怎样使用 Mave ...
- Spring Security研究(1)
1, 获取Spring Security的Jar包 :从Spring网站下载页下载或者从Maven中央仓库下载.一个好办法是参考实例应用中包含的依赖库. 2,项目模块: Core - spring ...
随机推荐
- Java基础(9):Java生成随机数一定范围内的数的一个典型例子
题目:编写一个JAVA程序,创建指定长度的 int 型数组,并生成 100 以内随机数为数组中的每个元素赋值,然后输出数组 note: 通过 (int)(Math.random() * 100) 生成 ...
- HashMap和HashTable区别
HashMap和HashTable区别 HashMap--->允许控制/线程安全 HashTable-->线程不安全
- zw版【转发·台湾nvp系列Delphi例程】HALCON GenGridRegion
zw版[转发·台湾nvp系列Delphi例程]HALCON GenGridRegion unit Unit1;interfaceuses Windows, Messages, SysUtils, Va ...
- MessageDigest
转: 我们知道,编程中数据的传输,保存,为了考虑安全性的问题,需要将数据进行加密.我们拿数据库做例子.如果一个用户注册系统的数据库,没有对用户的信息进 行保存,如,我去页面注册,输入"Vic ...
- HGE游戏引擎之hgeQuad结构体的使用(用于渲染图片)
HGE基本的渲染图元是hgeQuad (Quad is the basic HGE graphic primitive),其中有一个hgeVertex成员结构,它用来描述图元顶点信息.The hgeV ...
- python字符串列表字典相互转换
字符串转换成字典 json越来越流行,通过python获取到json格式的字符串后,可以通过eval函数转换成dict格式: >>> a='{"name":&qu ...
- python使用装饰器捕获异常
可以编写一个通用的捕获异常的装饰器, 当程序发生异常时可以继续执行后续动作. 尤其适合于使用大量断言的验证性程序. 装饰器的实现原理使用了回调技术. 如下所示, robust 是一个装饰器. 当在普通 ...
- 160906、Dubbo与Zookeeper、SpringMVC整合和使用(负载均衡、容错)
互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及流动计算架构势在必行,Dubbo是一个分布式服务框架,在这种情况下诞生的.现在核心业务抽取出来,作为独立的服务,使 ...
- TI CC2541增加一个可读写, 又可以Notify的特征字
参考这个博客: http://blog.csdn.net/feilusia/article/details/48235691 值得注意是, 测试前, 在手机中先取消对原有的设备的配对.
- php ssh2 scp问题解决
<?php$connection = ssh2_connect('192.168.1.XX', 22);$res=ssh2_auth_password($connection, 'root', ...