Struts2 property tag escapeHtml is not working am I missing something?

Posted by user1073570 on Stack Overflow See other posts from Stack Overflow or by user1073570
Published on 2011-11-30T14:54:45Z Indexed on 2011/12/01 1:50 UTC
Read the original article Hit count: 216

Filed under:

The following code is not working correctly. I would like to take the following Java String from the bean

String statusMsg = "Hello World! <br/><br/><h3>Test</h3>"

And output it with the HTML tags not escaped.

<s:property escapeHtml="false" value="bean.statusMsg"

The result of this property Tag and String, is that the HTML tags are still being escaped, am I missing something?

My goal is to eventually build a table of status data and output it on the page is this the wrong way to use the property tag? Thank you in advance for your help.

© Stack Overflow or respective owner

Related posts about struts2