...escapeHtmlBody="false" on all my tags, what is the point?
<s:a action="%{#myaction.action}" escapeHtmlBody="false"><s:text name="%{#my.key}"
/></s:a>
On 21/12/2021 19:17, Lukasz Lenart wrote:
pon., 20 gru 2021 o 17:29 Greg Huber <gregh3...@gmail.com> napisaĆ(a):
..again with the image source code
When I use the java templates plugin it works great, but when I switch
to normal templates it does not render the screen correctly for the
images, it just displays the image source rather than the actual image.
It is also seems to be escaping my ampersands, and showing html :
<s:url var="delUrl" action="myDelete">
<s:param name="id" value="#myid" />
</s:url>
<s:a id="id_%{#attr.rc}" href="%{#attr.delUrl}"><img src="<s:url
value='/images/icon_waste_sml.png'/>" alt="X" title="<s:property
value='#attr.deleteitem' />" /></s:a>
It's related to
https://issues.apache.org/jira/browse/WW-5022
and
https://issues.apache.org/jira/browse/WW-4972
you must set "escapeHtmlBody" attribute to "false" as below
<s:a id="id_%{#attr.processId}" href="%{#attr.delUrl}" escapeHtmlBody="false">
...
</s:a>
I will add a note to the Migration Guide
Regards
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org
For additional commands, e-mail: dev-h...@struts.apache.org