You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jens Viebig <jv...@como.com> on 2002/07/26 11:14:41 UTC
Handling jsp bean relationship ?
How can i handle this situation with the newest version of Struts 1.1b or
nightly:
I have two beans A and B. Think that i have a collection of Bean A. Every
Bean A includes a key referencing to
a Bean of type B.
So i can do iteration with Bean a
<logic:iterate id="a" name="aCollection">
<bean:write name="a" property="someValue"/><bean:write name="a"
property="someKeyReferencingB"/>
</logic:iterate>
Instead of writing out the key
<bean:write name="a" property="someKeyReferencingB"/>
i want to write out some values of Bean b like that:
<logic:iterate id="a" name="aCollection">
<bean:write name="a" property="someValue"/><bean:write
name="BReferencedByA" property="someValueOfB"/>
</logic:iterate>
Can this be done whith struts standard tags? Any other taglibs that can
handle this situation ? Is my design going the right way ?
Greets
Jens Viebig
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>