aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 239
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: 8708
    
    6

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Variable name substitution at property resource file
 
Similar Threads
Displaying BLOB in JSF
java.io.FileNotFoundException: ServletContext resource [/xml/dbconfig.cfg.xml] cannot be resolved to
java.net.SocketException: Broken pipe
TroubleShooting Weblogic 11g / Contract Manager
Frequent Exceptions: Broken Pipe, Conn. Reset, Socket Write error, etc...