struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Winterfeldt <dwinterfe...@yahoo.com>
Subject Re: bean:message with bean
Date Thu, 18 Oct 2001 22:44:42 GMT
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 <fabien@voicemate.com> 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

Mime
View raw message