6.3.1 变量和作用域 - Reference Documentation
Authors: Graeme Rocher, Peter Ledbrook, Marc Palmer, Jeff Brown, Luke Daley, Burt Beckwith
Version: null
6.3.1 变量和作用域
Within the scope of a tag library there are a number of pre-defined variables including:
在一个标签库的作用域内,已经预定义了一些变量,它们包括:
actionName- The currently executing action namecontrollerName- The currently executing controller nameflash- The flash objectgrailsApplication- The GrailsApplication instanceout- The response writer for writing to the output streampageScope- A reference to the pageScope object used for GSP rendering (i.e. the binding)params- The params object for retrieving request parameterspluginContextPath- The context path to the plugin that contains the tag libraryrequest- The HttpServletRequest instanceresponse- The HttpServletResponse instanceservletContext- The javax.servlet.ServletContext instancesession- The HttpSession instance
actionName- 当前正在运行的操作名称controllerName- 当前正在运行的控制器名称flash- flash对象grailsApplication- GrailsApplication实例out- 响应输出器,用于将内容写到输出流中pageScope- 一个pageScope对象引用,用于GSP的渲染(比如绑定)params- 用于接受请求参数的params对象pluginContextPath- 包含标签库的插件上下文路径request- HttpServletRequest实例response- HttpServletResponse实例servletContext- javax.servlet.ServletContext实例session- HttpSession实例

