Let me explain what I want to do:
I got a properties containing a property like this:
message=Hello {0}, welcome.
I’d like to access this property in a Java class using a String and set the parameter in that class.
I’ve already use fmt:message and fmt:param to display this kind of property in a JSP but I want to manipulate it in a Java object now (I already know how to inject a property into the class).
Any idea on how to do this?
You can use java.util.ResourceBundle and java.text.MessageFormat
Some examples