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 -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org