GSP Tag - def

Tag - def

Deprecated

The def tag is deprecated in 1.0. Use set instead. See line 39 of the source:

http://fisheye.codehaus.org/browse/grails/trunk/grails/src/web/org/codehaus/groovy/grails/web/taglib/GroovyDefTag.java?r=5744#l39

If you use the def tag in 1.0, then future sets of the same var will have no effect.

Description

Defines a variable to be used on GSP page.

Parameters

  • var - The name of the variable
  • value - The initial value to be assgined

Examples

<g:def var="now" value="${new Date()}" />





Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.