The reason <nested:nest property="submission"> <nested:iterate property="attributes"> ..
works is because the <nested> tags keep track of the context in which they are in; i.e. the call to the 'attributes' property by <nested:iterate> is made relative to the parent bean which is 'submission'. For your custom tag to pick up on this, you will have to mimic this functionality. Take a look at the source for the nested framework; maybe it's a simple matter to use this feaure in custom tags (such as yours) without having to re-invent the wheel. Sri -----Original Message----- From: Loren Hall [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 08, 2003 4:07 AM To: Struts Users Mailing List Subject: How should I pass an exposed bean variable as custom tag parameter? Arg, i can't see how to pass bean variables as parameters to my own custom tag. It seems like this should be easy, but it appears to be a common problem, previous posts have led to my attempting various methods . . . without success, perhaps since i'm trying to pass an array. Please help! I'm trying to pass a variable, exposed by the <nested> tag, to a custom tag. 'Submission' is the bean, and 'attributes' is a Object[] in 'Submission', to demonstrate, this prints from the array: <nested:nest property="submission"> <nested:write property="ID"/> <nested:iterate property="attributes"> <nested:write property="name" /> <nested:write property="value"/> </nested:iterate> </nested:nest> What I'd like to do is pass submission.attributes into my tag as the variable data . . . I've tried many ways, this is the "phonetic" code, which doesn't work. <nested:nest property="submission"> <app:showAttributes data="attributes"/> </nested:nest> thanks in advance, Loren -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>