struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Struts 2.5.11 test build is ready
Date Tue, 27 Jun 2017 06:42:47 GMT
2017-06-27 8:38 GMT+02:00 info@flyingfischer.ch <info@flyingfischer.ch>:
> Thanks! This works fine. And you are perfectly right:
>
> StringEscapeUtils.unescapeHtml4(value.replaceAll("''", "'"));
>
> Is not needed anymore. It seemed, if I am not mistaken, to be necessary
> with:
>
> LocalizedTextUtil.findDefaultText(key, getLocale());
>
> Single quotes in my properties files are escaped with two single quotes.
>
> Well it is and was kind of a hacky approach, to compensate for the lost
> convenience method of getText(key) since 2.5.2. I do not like to do
> things that way, and prefer to leave such details to the framework.

Ah... I think it is the same problem as this issue [1], it will be
resolved in 2.6 (or another 2.5.x) - which means your hack want be
needed :) Sorry for that :(

[1] https://issues.apache.org/jira/browse/WW-4742


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message