Re: RE: Struts7: looking for constant to set escapeHtml=false

Lukasz Lenart <[email protected]> Tue, 1 Apr 2025 07:38:23 +0200
Newsgroups gmane.comp.jakarta.struts.user
Message-ID <CAMopvkNdxAC6EUmdLx6qZLR+EnR3_BCT81HbTafc4mc-zn-nog@mail.gmail.com>
pon., 24 mar 2025 o 20:04 Ute Kaiser <[email protected]> napisał(a):
> Thx Lukasz and Nate.
>
> I created MypropertyTag.java extending PropertyTag.java with my own method setEscapeHtml but it was not called when the attribute escateHTML was not set in jsp.
> So I decided to go with Nate and to add the attribute in jsp.
> Yet, MypropertyTag helped me with another problem: to call locale-specific getter-methods of my bean.
> (This was done in my legacy Struts1 application by extending org.apache.struts.taglib.bean.WriteTag; I had to replace that.)

If that works for you it's great - you can always register a ticket to
extend the functionality of <s:property/> tag or propose a PR.


Regards
Łukasz