tomcat-taglibs-user mailing list archives

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

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"/>
    </fmt:message>

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?

Thanks,

Cindy



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message