File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Message resources '$' display problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Message resources Watch "Message resources New topic
Author

Message resources '$' display problem

Sam Venkata
Ranch Hand

Joined: Mar 06, 2006
Posts: 68
Hi,

We have a framework built on struts and it has a .properties file equivalent to MessageResources.properties file in struts. One of the value in key value pairs in the .properties file has a text "$100" that needs to be displayed in the JSP. The JSP does not display the '$' sign but just displays 100.

Is there a way to get around this? Could anybody please suggest me.

Thanks,
Samanth Marisetty.
Sam Venkata
Ranch Hand

Joined: Mar 06, 2006
Posts: 68
Hi,

I found the solution. I had to replace $ with '&# 36;' . It did the trick.

Thanks,
Samanth.
[ November 25, 2008: Message edited by: Samanth Marisetty ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Message resources '$' display problem
 
Similar Threads
Pop up window in struts
Error Page
Missing message for key "welcome.title" in bundle "(default bundle)" for locale en_US
how to set the locale for display tag
exporting in excel using display tag in struts