(Quick Reference)

cookie

目的
Purpose

Obtains the value of a named cookie

使用例
Examples

Reading a cookie's value:

Hello <g:cookie name="myCookie" />

Or testing for existence:

<g:if test="${cookie(name:'myCookie')}">Hello</g:if>

詳細
Description

属性

Attributes
  • name - The name of the cookie

ソース
Source

{source:tag=ApplicationTagLib.cookie} {source}