重温struts2拦截器(二)

2014-11-24 02:38:38 · 作者: · 浏览: 1
默认的拦截器

注意:如果在某个action中又使用了另一个拦截器,此时默认的拦截器将失效,为了确保能够使用默认的拦截器,又需要添加其他拦截器时,可以在action中加上其他拦截器

3.2.3. 配置文件

"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"

"http://struts.apache.org/dtds/struts-2.0.dtd">

class="com.perm.interceptor.PermissionsInterceptor" />

/message.jsp

class="com.perm.action.UserAction"

method="listAllUser">

/listall.jsp

作者“wuchongchang的博客”