This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Variable name substitution at property resource file

 
albert kao
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I like to do variable name substitution at the property resource file.
I had tried this:
Resource property file:


Jsp file:


The browser display the desired message properly.
i.e.
"What is the name?" is displayed properly.
However, there was runtime error at the weblogic console:


Please help.
Thanks.
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think MessageFormat or Properties does that sophisticated of substitution. Usually one provides a place holder in a String and provide MessageFormat with both the String and the value for the place holder.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!