Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

output raw HTML

 
rob harvey
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 456
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic