Matt,
I'm not sure whether I understood the problem correctly, but I did the
same thing for a while, and it worked for me without "flush" or other
tricks. I simply included the message via <bean:message key="x"/>, not
matter whether there was HTML in it or not.
Note, however, that it can be problematic to mix layout and content
information. This was the big disadvantage of HTML, and people tried to
address it with XML and stylesheets, making the two independent of each
other. I'd recommend putting layout information, such as <b>, <p>, <br>
etc. in the .jsp, whereas the .properties file should only contain
content. This way your translators don't need to know HTML. Of course,
we might open up another can of worms here if we don't have the same
page layout for all languages.
Just my $0.02, tom
Matt Raible wrote:
>
> I am using <bean:message key="key.name" /> and I want to have HTML in my
> key.name string, such as:
>
> key.name=<b>Hello World</b>
>
> So ideally, I could make my tag resemble <bean:message key="key.name"
> flush="true" />, but there is no filter attribute on this tag?
>
> How can I do this, do I have to use <bean:write>, and if so, how do I get the
> messages bean?
>
> Can it be done using:
>
> <bean:write name="messages" property="key.name" flush="true" />
>
> Thanks,
>
> Matt
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
--
thomas quas | "Art lies in the consciousness of doing the thing,
[EMAIL PROTECTED] | in the attention of the happening[...]"
| -- Allen Ginsberg --