The documentation for the <bean:message> tag states the following:

"Retrieves an internationalized message for the specified locale, using the
specified message key, and write it to the output stream. Up to five
parametric replacements (such as "{0}") may be specified.

The message key may be specified directly, using the key attribute, or
indirectly, using the name and property attributes to obtain it from a
bean."

So what I expect is that I can use the name and property attributes to
retrieve a message key from the "ci" property in the "<%=
Constants.STATS_KEY %>" bean!

Regards,
Guus


----- Original Message -----
From: "Mark Schenk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 20, 2001 19:38
Subject: RE: Problem with <bean:message> tag?


> > When I try to use
> > <bean:message name="<%= Constants.STATS_KEY %>" property="ci"
> scope="request"/>
> > I get the message
> > "According to TLD attribute key is mandatory for tag message"
> >
> > The message is incorrect, at least if I am to believe the documentation
of
> the BEAN TLD!
> >
> > Does anyone has any experience using "name" & "property" instead of
"key"?
>
> Are you sure you're not confusing <bean:message> and <bean:write> ? What
> would
> you expect as output from your above tag?
>
> <Mark/>
>
>
> --------------------------------------------------------------------------
--
> Mark Schenk                     |       Ceci n'est pas une signature
> Blackboard Project Manager      |
> Delft University of Technology  |E-mail: [EMAIL PROTECTED]
> Dept.: DTO                      |Phone:  +31 152785448 (85448)
> Room: LB00.680                  |Fax:    +31 152786359
> --------------------------------------------------------------------------
--
>

Reply via email to