You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hartmut Bernecker <h....@dhw.de> on 2001/07/24 15:13:24 UTC

[answer to the question] how to access beans collected in hashtable?

Hi,

who knows how to iterate a hashtable and access its value-objects (beans
with some properties)?
I can reach the beans in the hashtable:

<logic:iterate id="element" name="myhashtable" property="table"/>
	<bean:write name="element" property="value"/>
</logic:iterate> 

But I don't know how to reach the properties of the beans.
Any idea??

--- Yeah, just before I pressed the send butten we got it! ---:

<logic:iterate id="element" name="myhashtable" property="table"/>
	<bean:write name="element" property="value.name"/>
</logic:iterate> 

Cheers
Hartmut