MessageResources resources =
retrieveMessageResources(pageContext, bundle, false);
...
message = resources.getMessage(userLocale, key);
...
return message;
which is the same way you're describing retrieving the message in your action. I'm assuming you're problem is when you are outputting the message in your jsp. To confirm this, try outputting the message from your action. To fix your problem, if you're using <c:out, make sure you add the attribute escapeXml and set it to false. I believe <bean:write has a similar attribute, called filter.
-Ben
From: "Khalid K." <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: MessageResources and html help! Date: Mon, 19 Jan 2004 11:47:16 -0800
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Let the new MSN Premium Internet Software make the most of your high-speed experience. http://join.msn.com/?pgmarket=en-us&page=byoa/prem&ST=1
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

