I've tried the above (at web.xml, page, and control levels) without success. When displaying the values, the browser just executes the javascript or html tags as I enter them without doing any escaping.
I am displaying out the entered fields as ${varname}
web.xml has this:
Code:
<context-param>
<param-name>defaultHtmlEscape</param-name>
<param-value>true</param-value>
</context-param>
top of the pages (both input and display) have this:
Code:
<spring:htmlEscape defaultHtmlEscape="true"/>
the control has this:
Code:
<form:textarea id="varname" path="varname" htmlEscape="true"/>
What could I be doing wrong?