A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
ApplicationResources.properties, and the browser is rendering my <br> tags
Joined: Jul 13, 2009
Oct 02, 2009 10:28:49
I'm running into a confusing issue. I have a
I cannot seem to get line breaks to appear on the page after putting them into my ApplicationResources.properties.
For example, I am using ActionMessages to display the dynamic messages on the page. Here is a property that is getting read:
message.search.noResults=Search yielded no results.<br>Please CONTINUE.
code from my
<p align="center"> <html:errors /> <br> <html:messages id="messages" message="true"> <bean:write name="messages"/> </html:messages> </p>
Instead of the page rendering:
Search yielded no results.
it is rendering:
Search yielded no results.<br>Please CONTINUE.
Note, no line return, and the page is actually showing the <br> tag, and not recognizing it as HTML.
So, now my text values in ApplicationResources.properties are very ugly, and all strung out in one huge line with no line breaks. I'm not sure what I might be doing wrong.
Any ideas on what I might try? Any workarounds?
Joined: Sep 29, 2008
Oct 02, 2009 14:28:12
The "workaround" is to read the tag docs and use the "filter" attribute.
subject: ApplicationResources.properties, and the browser is rendering my <br> tags
ActionMessage not iterating
Spring JDBC Netbeans
Handling Messages (v1.2.9)
html:messages not working, but request attribute is present
html in bean message
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015