I made a mistake in what I sent. It should be.

<logic:iterate id="key" name="keys">
  <bean:message key="<%= key %>" />
</logic:iterate>

David

--- Fabien Modoux <[EMAIL PROTECTED]> wrote:
> David,
> 
> Thanks for your help.
> I misinterpreted the docs and thought I could use
> either key or name to get resources from file. I'll
> try something else...
> 
> -Fabien
> 
> ---------------------------------------------
> Fabien Modoux,
> Voicemate - http://www.voicemate.com
> 
> -----Original Message-----
> From: David Winterfeldt
> [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 18, 2001 6:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: bean:message with bean
> 
> 
> If they are message keys from the resource file,
> like
> msg.hello=Hello, then it should be key not name.
> 
> <logic:iterate id="key" name="keys">
>   <bean:message key="key" />
> </logic:iterate>
> 
> 
> The tag bean:write uses the name attribute (as do
> most
> other tags in one way or another).
> <bean:write name="key"/>
> 
> David
> 
> --- Fabien Modoux <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I am using the bean:message and the logic:iterate
> > tags
> > to print a collection of messages (Vector of
> > String):
> >
> > <logic:iterate id="key" name="keys">
> >   <bean:message name="key" />
> > </logic:iterate>
> >
> > I get an exception at
> >
> >
>
org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.java
> > :149)
> >
> > saying,
> >
> > "According to the TLD attribute key is mandatory
> for
> > tag message"
> >
> > In the tld file, it is indeed mandatory, but
> > according to the
> > Javadoc I thought I would be able to do that. Is
> it
> > the right
> > way to do it?
> >
> > Thanks,
> >
> > -Fabien
> >
> > ---------------------------------------------
> > Fabien Modoux,
> > Voicemate - http://www.voicemate.com
> >
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

Reply via email to