You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Asif Rahman <ar...@worlddata.com> on 2004/07/12 17:34:08 UTC

Problem with formatting messages from ApplicationResources.xml

 
I included <br> in one of the entries in the ApplicationResources.  Im not sure if that is allowed.
This is what I get in my jsp output:
 
a.. Your payment of $750.00 has been approved! <br> Your Order ID is 6690. <br> Please print this page for your records.

I tried using the filter attribute <bean:write name="message" filter="true" />, but that didnt work either.  Can someone help me with this?  

-Asif

Re: Problem with formatting messages from ApplicationResources.xml

Posted by Van <va...@gmail.com>.
On Mon, 12 Jul 2004 11:34:08 -0400, Asif Rahman <ar...@worlddata.com> wrote:
> I tried using the filter attribute <bean:write name="message" filter="true" />, but that didnt work either.  Can someone help me with this?

You had the right idea. Filtering is what escapes the special
characters like "<" and the default is already "true". This should do
what you want:

<bean:write name="message" filter="false" />

-- 
- Mike "Van" Riper
  van.riper@gmail.com

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