You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Khalid K." <gr...@maikada.com> on 2004/01/19 20:47:16 UTC
MessageResources and html help!
Hello All,
I use MessageResources to pull text from property files, but it doesn't
interpret the html tags. I do need to pull the text in the Action class.
<bean:message> recognizes and parses html tags but MessageResources.getMessage
just prints it out. Any help is appreciated.
example:
CompanyResources.properties
key1=Hello<br>World
Action:
msg = bundle.getMessage(locale, key1);
jsp shows
Hello<br>World
instead of
Hello
World
Thanks,
Khalid
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org