Revision: 10016
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 3, 2008 11:33 by theobriscoe
Initial Code
// 1) Modify your message to receive the argument (or multiple arguments… just // increase the argument number)….
AIRTEST=Hey {0}, what is up?
//2) Inject the Messages bundle as you probably are already doing…
@In
Map<String, String> messages = null;
//3) Use java.text.MessageFormat to perform the parse (Note: The Object [] can //receive various datatypes. For more info lookup MessageFormat)...
MessageFormat.format( messages.get( "AIRTEST" ), new Object[] {"Chuck"} )
Initial URL
Initial Description
Initial Title
Pass Arguments to the Messages Bundle
Initial Tags
Initial Language
Java