wood burning stoves 2.0*
The moose likes Struts and the fly likes output raw HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "output raw HTML" Watch "output raw HTML" New topic
Author

output raw HTML

rob harvey
Greenhorn

Joined: Apr 05, 2002
Posts: 25
Hi - I may be missing something completely obvious here but is there a tag to output raw html in struts. My problem is I am driving all my text from message resources for internationalisation but some words need to be bold etc - at the moment I am having to output each paragraph in seperate parts with the text decoration tags around them. ideally id like the whole paragraph as one in the props file with tags around the words / phrases i want bold etc.

hope that makes sense?
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
makes sense.

i'm using style information in some properties, this for example

will render all my error messages in style "errorText".

i guess it's more a question of responsibility. do i want to mix style with text information? i'd personally think it's okay up to a certain level.

but if your application is really "content driven", then you should rather go for something more CMS-like (content management system). which means: persist text and its formatting in the database, not in a property file.

makes sense?

;-)

jan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: output raw HTML
 
Similar Threads
searching and replacing words in a paragraph
searching and making bold different text in an xml element
html to xml (wordml) converstion
HTML Chars escape
make text bold