fieldValue

用途

这个标签检查被数据绑定的bean,以获取域的值, 在数据绑定期间,在bean的错误对象中,也可以获取最初提交的值或从bean的属性值.一旦获取到值就自动 HTML 编码.

示例

<g:fieldValue bean="${book}" field="title" />

// or as a method <input type="text" value="${fieldValue(bean:book,field:'title')}" />

描述

属性

Source

Show Source