`

webwork中获取ServletContext

阅读更多
ServletContext sc  =ServletActionContext.getServletContext();
分享到:
评论

相关推荐

    webwork工作机制

    2. 数据复制:`DispatcherUtils`的`serviceAction()`方法创建了一个名为`extraContext`的Map,将HttpServletRequest、HttpSession和ServletContext中的数据复制到其中。这个Map作为参数,为后续创建Action实例提供上...

    OGNL百度百科OGNL百度百科

    - `#application.userName` 代表从 `ServletContext` 获取 `userName` 的值。 - `#session.userName` 代表从 `HttpSession` 获取 `userName` 的值。 - `#request.userName` 代表从 `HttpServletRequest` 获取 `...

    struts2_1 课件

    - 或者直接使用ServletActionContext获取HttpServletRequest、HttpSession和ServletContext对象,以调用Servlet API进行更复杂的操作。 5. Struts2的架构剖析: - Struts2建立在Xwork2的基础上,Xwork提供基础的...

    java私塾全部笔记

    - Interceptor的工作原理及其在WebWork中的应用。 - **OGNL表达式语言** - OGNL(Object-Graph Navigation Language)的使用方法。 - **验证框架** - WebWork内置的验证框架及其配置方法。 - **WebWork标签库** - ...

    struts学习笔记

    - `ServletActionContext`可用于获取`request`、`response`和`servletContext`对象,但不提供直接获取`session`的方法。 #### 三、Struts.xml中package标签的详细配置说明 **1. 基本属性**: - **name**:包的...

    Spring-Reference_zh_CN(Spring中文参考手册)

    5.4.1. 设置和获取属性值以及嵌套属性 5.4.2. 内建的PropertyEditor实现 5.4.2.1. 注册用户自定义的PropertyEditor 6. 使用Spring进行面向切面编程(AOP) 6.1. 简介 6.1.1. AOP概念 6.1.2. Spring AOP的功能和目标 ...

    Spring中文帮助文档

    4.3.4. ServletContextResource 4.3.5. InputStreamResource 4.3.6. ByteArrayResource 4.4. ResourceLoader接口 4.5. ResourceLoaderAware 接口 4.6. 把Resource作为属性来配置 4.7. Application context 和...

    Spring API

    4.3.4. ServletContextResource 4.3.5. InputStreamResource 4.3.6. ByteArrayResource 4.4. ResourceLoader接口 4.5. ResourceLoaderAware 接口 4.6. 把Resource作为属性来配置 4.7. Application context 和...

    Spring 2.0 开发参考手册

    5.4.1. 设置和获取属性值以及嵌套属性 5.4.2. 内建的PropertyEditor实现 6. 使用Spring进行面向切面编程(AOP) 6.1. 简介 6.1.1. AOP概念 6.1.2. Spring AOP的功能和目标 6.1.3. Spring的AOP代理 6.2. @...

    spring chm文档

    5.4.1. 设置和获取属性值以及嵌套属性 5.4.2. 内建的PropertyEditor实现 6. 使用Spring进行面向切面编程(AOP) 6.1. 简介 6.1.1. AOP概念 6.1.2. Spring AOP的功能和目标 6.1.3. Spring的AOP代理 6.2. @...

Global site tag (gtag.js) - Google Analytics