I have some problem with auto encoding from text to UTF-8 in Struts2 tag.
I want to pass a value witch contain a HTML tag from action class to JSP page, but in struts tag this value is automatically encoding to UTF-8 and HTML tag is not correct displayed.
For example:
I have a String variable named param
in action class
String param=param[0] + "& <br>" + param[1];
And this param is pass in JSP page and displayed in page using Struts tag:
<s:property value="%{param}">
My problem is that, in jsp page, <br>
tag is encoding automatically and displeyed like test "& <br>"
instead using it like a HTML tag and displayed "&"
followed by
enter line breaks.
Does anyone have any idea how I could skip this automatically encoding process?