Struts2的数据标签中的property中的escape

来源:互联网 发布:明星导航语音软件 编辑:程序博客网 时间:2024/06/01 09:59
<s:property>标签中的escape属性有时候会报错:
propertyTags.jsp:14:50: This attribute is not recognized.
    <s:property value="'<h3>www.itcast.cn</h3>'" escape="true" /><br/>
                                                 ^----^
这个时候可以把escape换为escapeHtml或者escapeJavaScript
原创粉丝点击