文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > struts.xml详解
侵权投诉

struts.xml详解

struts.xml详解

1 <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "doc.guandang.net; > 2 <struts>

3

4 <!-- include节点是struts2中组件化的方式 可以将每个功能模块独立到一个xml配置文件中 然后用include节点引用 -->

5 <include file="struts-default.xml"></include>

6

7

8 <!-- package提供了将多个Action组织为一个模块的方式

9 package的名字必须是唯一的 package可以扩展 当一个package扩展自 10 另一个package时该package会在本身配置的基础上加入扩展的package 11 的配置 父package必须在子package前配置

12 name:package名称

13 extends:继承的父package名称

14 abstract:设置package的属性为抽象的 抽象的package不能定义action 值true:false

15 namespace:定义package命名空间 该命名空间影响到url的地址,例如此命名空间为/test那么访问是的地址为doc.guandang.net

16 -->

17 <package name="com.kay.struts2" extends="struts-default" namespace="/test">

18 <interceptors>

19 <!-- 定义拦截器

20 name:拦截器名称

21 class:拦截器类路径

22 -->

23 <interceptor name="timer" class="com.kay.timer"></intercept

第1页

你可能喜欢

热门文档

相关文档

  • struts2之struts.xml详解

    struts2 之 struts.xml 详解 1.struts.xml 概述 struts.xml 为 Struts 2 的核心配置文件。struts.xml 中主要配置 Struts 项目 的一些全局的属性,用户请求和响应...

  • struts.xml配置详解

    struts.xml配置详解_IT/计算机_专业资料。struts.xml配置详解struts.xml 是我们在开发中利用率最高的文件,也是 Struts2中最重要的配置文件。 分别介绍一下几个 ...

  • struts.xml及其他配置文件详解

    struts.xml及其他配置文件详解_IT/计算机_专业资料。java 学习资料struts.xml 详解 1、包含配置 、 随着应用规模的增加, 随着应用规模的增加,在 struts.xml 文件...

  • struts.xml详细说明

    struts2 中 struts.xml 详细说明 struts.xml 文件结构 struts.xml 文件是整个 ... struts.xml struts.prop... 6页 免费 Struts.xml详解 7页 1下载券...

  • struts2中struts.xml文件详解

    struts2中struts.xml文件详解_IT/计算机_专业资料。struts2中struts.xml文件详解在本文中将详细讲述 struts.xml 文件的常用配置及注意事项。 1. 使用<include>...

  • Struts2 XML配置详解

    Struts2 XML配置详解_计算机软件及应用_IT/计算机_专业资料。1. 深入 Struts2的配置文件本部分主要介绍 struts.xml 的常用配置。 1.1. 包配置: Struts2框架中...

  • Struts的Validator-rules.xml详解

    Struts的Validator-rules.xml详解_IT/计算机_专业资料。Struts的Validator-rules.xml详解validation.xml 文件的文档结构是由 validator_1_1_3.dtd 文件定义,其 ...

  • MyEclipce2013与Struts2使用、struts.xml配置详解

    MyEclipce2013与Struts2使用、struts.xml配置详解_计算机软件及应用_IT/计算机_专业资料。MyEclipce2013与Struts2使用、struts.xml配置详解...

  • struts2-struts_xml属性详解

    struts2-struts_xml属性详解_计算机软件及应用_IT/计算机_专业资料。struts2-struts_xml属性详解我想实现访问一个 acion 时候,如果这个 action 不存在,就是我没...

  • struts.xml struts.properties 详解

    struts.xml struts.properties 详解_IT/计算机_专业资料。学习struts2必须掌握的知识点之一!1) struts.xml 该文件也是 struts2 框架自动加载的文件,在这个文件中...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email