天天看点

struts2 <s:property>标签的escape属性

<s:property>标签的escape属性默认值为true,即不解析html代码,直接将其输出。      
若想要输出html的效果,则要改为false      
eg:      
pageNoList 的值为:<p style="color:red;">hello</p>      
<s:iterator value="page.pageNoList">
       <s:property escape="false"/>       
        </s:iterator>      
输出效果为:hello      

继续阅读