JavaScud | Forum | JIRA | Blog |
  Dashboard > WebWork2文档中文化计划 > ... > Data Tags > property
  WebWork2文档中文化计划 Log In View a printable version of the current page.  
  property
Added by scud, last edited by scud on May 10, 2006  (view change)
Labels: 
(None)

描述

得到'value'的属性,如果value没提供,默认为堆栈顶端的元素.

参数

名称 必填 缺省 类型 描述
default false   String 如果属性是null则显示的default值
escape false true Boolean 是否escape HTML
value false <top of stack> Object value to be displayed
id false   Object/String 该元素标识

例子

<ww:push value="myBean">
    <!-- Example 1: -->
    <ww:property value="myBeanProperty" />

    <!-- Example 2: -->
    <ww:property value="myBeanProperty" default="a default value" />
</ww:push>

Example 1 显示出myBean's getMyBeanProperty() 的执行结果.
Example 2 显示出myBean's getMyBeanProperty() 的执行结果,如果是null,则显示缺省(default)值.

Site running on a free Atlassian Confluence Open Source Project License granted to WebWork China. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.3 Build:#808 May 29, 2007) - Bug/feature request - Contact Administrators