File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "output raw HTML" Watch "output raw HTML" New topic

output raw HTML

rob harvey

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?


I agree. Here's the link:
subject: output raw HTML
It's not a secret anymore!