FreeMarker(八)页面内置对象

虽然说这些是内置对象,但是和jsp中的request是完全不一样的,只能用于取值

${Request.attributeName}

Request: 用于获取Request对象中的attribute对象。

Session:用于获取Session 对象中的attribute对象。

Application:用于获取 Application(ServletContext)对象中的attribute对象。

RequestParameters:用于获取Request对象的parameter参数(浏览器端发送的请求数据)

Parameters:属性获取,依次从 RequestParameters、Request、Session、Application对象中获取对应属性/参数,一旦获取,则不再向下查找。

posted on 2018-03-10 01:20  疯狂的妞妞  阅读(333)  评论(0编辑  收藏  举报

导航