读书人

Struts s:property 标签的施用

发布时间: 2012-08-21 13:00:22 作者: rapoo

Struts s:property 标签的使用

?

1. <s:property value="%{'<li>刘庆</li>'}" />

?

会显示

<li>刘庆</li>

?

2. 我们要显示html 而不是转意思后的文本

?

<s:property value="stateText" escape="false" />

?

escape

innerHTML

就OK

?

Name

Required

Default

Evaluated

Type

Descriptiondefaultfalse?falseStringThe default value to be used if
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.

读书人网 >Web前端

热点推荐