6.6.3 变量和作用域 - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith
Version: null
6.6.3 变量和作用域
Filters support all the common properties available to controllers and tag libraries, plus the application context:
过滤器支持控制器和标签库的所有公共属性,外加应用环境上下文(application context):
- request - The HttpServletRequest object
- response - The HttpServletResponse object
- session - The HttpSession object
- servletContext - The ServletContext object
- flash - The flash object
- params - The request parameters object
- actionName - The action name that is being dispatched to
- controllerName - The controller name that is being dispatched to
- grailsApplication - The Grails application currently running
- applicationContext - The ApplicationContext object
- request - HttpServletRequest对象
- response - HttpServletResponse对象
- session - HttpSession对象
- servletContext - ServletContext对象
- flash - flash对象
- params - 请求参数对象
- actionName - 正在使用的操作名称
- controllerName - 正在使用的控制器名称
- grailsApplication - 当前正在运行的Grails应用
- applicationContext - ApplicationContext对象

