tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cindy Nordahl" <>
Subject I18N <messageArg> tag
Date Tue, 18 Dec 2001 14:14:17 GMT

I'm trying to figure out <messageArg> tag.  The specs say, "If the message 
corresponding to the given key is compound, that is, contains one or more 
variables, it can be supplied with argument values for these variables by 
using a <messageArg> subtag for each argument value"

The example in the specs:

    <fmt:message key="Welcome">
      <fmt:messageArg value="$dateArg"/>

Does this mean that the 'Welcome' key contains more than one value?  Is the 
<messageArg> tag printing a date that is grabbed from the resource bundle?

Welcome = "welcome"
Welcome.dateArg = "Monday, January 2nd, 2002"

But, it's not because the '$dateArg' is a scoped variable.  So, why bother 
with the messageArg tag?

Any ideas?



MSN Photos is the easiest way to share and print your photos:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message