File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes html tag in properties Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html tag in properties" Watch "html tag in properties" New topic

html tag in properties

Geethanandh Kandasamy

Joined: Sep 28, 2004
Posts: 5
my file has a line like this = {0} has been <b>saved</b>.

I want my "saved" to be bolded, but the html tag is be printed as such instead of bolding

Any suggestions
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

This should happen if you set the Struts tag's filter attribute to "true". There might be something else causing it such as a configuration in web.xml or struts-config.xml but I am not sure.

A good workman is known by his tools.
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
Yes, it's the bean:write filter attribute, but the default is true, so you'll need to set it to false to get the behavior you want.
I agree. Here's the link:
subject: html tag in properties
It's not a secret anymore!