Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

output raw HTML

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic