You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Sebastian Ho <se...@bii.a-star.edu.sg> on 2004/08/31 04:08:22 UTC
Wrong ActionMessage formatting
Hi
I am having problem with the output from ActionMessage.
I uses HTML tags like <BR> in my properties file.
When bean:write prints out my messges, it displays <BR> in the browser.
The HTML source turns out to be "<BR>".
I do not have this problem with ActionErrors.
Am I missing anything?
This is how I print it out in JSP:
<html:messages id="message" message="true">
<b><bean:write name="message"/></b><br>
</html:messages>
Sebastian
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Wrong ActionMessage formatting
Posted by Shinobu Kawai <sh...@ieee.org>.
Hi Sebastian,
> I uses HTML tags like <BR> in my properties file.
>
> When bean:write prints out my messges, it displays <BR> in the browser.
>
> The HTML source turns out to be "<BR>".
>
> I do not have this problem with ActionErrors.
>
> Am I missing anything?
Check out the "filter" attribute in bean:write.
http://struts.apache.org/userGuide/struts-bean.html#write
> <html:messages id="message" message="true">
> <b><bean:write name="message"/></b><br>
> </html:messages>
Best regards,
-- Shinobu Kawai
--
Shinobu Kawai <shinobu@ieee.org, shinobu@computer.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org