Tag Name: <a2:property />

Description

Print out expression which evaluates against the stack

Used to get the property of a value, which will default to the top of the stack if none is specified.

         
  Example 1 prints the result of myBean's getMyBeanProperty() method. Example 2 prints the result of myBean's getMyBeanProperty() method and if it is null, print 'a default value' instead.  
  <a:property value="getText('some.key')" />  

Attributes

Name

Required

Default

Type

Description

default false   String The default value to be used if value attribute is null
escape false true Boolean Whether to escape HTML
value false <top of stack> Object value to be displayed
id false   Object/String id for referencing element. For UI and form tags it will be used as HTML id attribute

Back to Taglib Index