Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Author

html tag in properties

Geethanandh Kandasamy
Greenhorn

Joined: Sep 28, 2004
Posts: 5
my application.properties file has a line like this

response.save = {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
Sheriff

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: http://aspose.com/file-tools
 
subject: html tag in properties
 
Similar Threads
applets..audio sound
Tag files not working ...
problem in Custom Tags
Custom Tag NOT Compiling
CUSTOM TAG NOT WORKING