【备忘】struts2中xml配置中几个标签的说明
2013-01-18 16:28
453 查看
<!-- 定义一个过滤器栈 --> <interceptors> <interceptor name="logininterceptor" class="com.lk.interceptor.LoginInteceptor"/> <interceptor-stack name="logininterceptorStack"> <interceptor-ref name="defaultStack"/> <interceptor-ref name="logininterceptor"/> </interceptor-stack> </interceptors> <!-- 将logininterceptorStack过滤器栈设为默认的过滤器栈 --> <default-interceptor-ref name="logininterceptorStack"/> <!-- 设置全局的result,优先执行action里的result --> <global-results> <!-- 下面定义的结果对所有的Action都有效 --> <result name="login">/index.jsp</result> </global-results> <action name="test"> <result> /MyJsp.jsp</result> <!-- 当login在具体的action里也有定义时,执行的是action里的 --> <result name="login">/MyJsp2.jsp</result> </action>
~.~action 里 return的是result........一不留神就犯迷糊
相关文章推荐
- Struts2的Struts.xml的package标签配置说明
- 关于MyBatis的配置文件SqlMapConfig.xml的标签说明
- 关于BIEE10g中instanceconfig.xml配置文件中,几个标签的作用
- Web.xml中Filter过滤器标签几个说明
- struts2标签应用 需在web.xml中 配置
- maven -- 学习笔记(二)之setting.xml配置说明(备忘)
- struts2中struts.xml中的action标签的method属性配置为"{1}"的时候是什么意味
- struts2配置文件的加载顺序以及 struts.xml package 的配置说明
- struts2 配置文件示范说明 xml 格式和 properties 格式
- struts2 struts.xml配置中常见配置选项及说明
- struts2-(2)---通过login示例解析几个struts.xml配置
- struts2中的配置文件的<constant>标签(struts.xml自动加载)
- Maven中pom.xml的配置和标签说明
- maven 中 pom.xml 配置文件标签说明,dependencyManagement和dependencies区别
- Web.xml中Filter过滤器标签几个说明
- struts2中 核心xml 配置说明
- Web.xml中Filter过滤器标签几个说明
- Web.xml中Filter过滤器标签几个说明
- 2.struts2配置文件Web.XML与Struts.XML模板详细说明
- 关于struts2中的xml配置文件说明