Search code examples
javahtmlstruts2strutsstruts-1

What is equivalent Struts 1.3 tags for <s:property value="Content" escapeHtml="false" />


I want equivalent Struts 1.3 tag for <s:property value="Content" escapeHtml="false" />

Currently I am trying something like <bean:write name="MyForm" property="Content" filter="false" ></bean:write>

I want to hide/remove HTML tags from My Content - I am having data from CKEditor which is combination of HTML tags.


Solution

  • Using bean:write tag you can output the value from the action form property. If you want to use a scope variable, you can use JSP EL or JSTL c:out

    ${MyForm.Content} or    
    <c:out value="${MyForm.Content}" escapeXml="false"/>