Meaningless Drivel is fun!*
The moose likes Struts and the fly likes Variable name substitution at property resource file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Variable name substitution at property resource file" Watch "Variable name substitution at property resource file" New topic
Author

Variable name substitution at property resource file

albert kao
Ranch Hand

Joined: Feb 04, 2010
Posts: 245
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

Joined: Oct 29, 2001
Posts: 8836
    
    7

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.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Variable name substitution at property resource file
 
Similar Threads
java.io.FileNotFoundException: ServletContext resource [/xml/dbconfig.cfg.xml] cannot be resolved to
Frequent Exceptions: Broken Pipe, Conn. Reset, Socket Write error, etc...
TroubleShooting Weblogic 11g / Contract Manager
Displaying BLOB in JSF
java.net.SocketException: Broken pipe