Forgive me if this sounds stupid, but how do I put a new line in a properties file for the Struts <html:messages> to read them? They always seem to output with my HTML code.
ie error.welcomeerrror=Welcome<BR> to my error
will output the <BR> instead of reading it as html.
any help appreciated.
Joined: Jul 29, 2004
Yes, I have done that many times. You can use html tags in your messages.
Joined: Sep 27, 2002
There should be absolutely no problems putting an <HTML> tag inside of a message. In the JavaEdge application, I use them all over the place. How you are actually rendering the message using the <html:message> tag?
John Carnell<br />Principal Architect<br /> <br />Netchange, LLC<br />1161 HillCrest Heights<br />Green Bay, WI 54313<br /> <br />firstname.lastname@example.org<br /> <br /> <br />Author of <a href="http://www.amazon.com/exec/obidos/ASIN/159059228X/ref=jranch-20" target="_blank" rel="nofollow">Pro Jakarta Struts, Second Edition</a>
Joined: Jul 04, 2003
There should be absolutely no problems putting an <HTML> tag inside of a message
Please your example code.
Thank you very much.
Java Developer, Thailand
Joined: May 10, 2002
How you are actually rendering the message using the <html:message> tag?
I usually use <html:message> tag instead of <html:errors/>. For example
Joined: Aug 28, 2001
i solved this problema long time ago but for anyone wondering...
I was using jstl Cout message tags, and there is an attribute escapeXml=true
also, for bean:Write messages, there is a filter=false attribute to not convert the html to text automatically [ August 30, 2004: Message edited by: Oliver Ng ]