This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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!