• 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
Pie
Posts: 9266
10
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