Hey Lukas,

I'm not entirely certain what you're asking. Do you want to know how to pass info from 
the tag to the inner-loop? If you're programming the inner-loop tag yourself, you can 
simply do a findAncestorWithClass(this, MyTag.class) in the innerloop class. This 
presents you with the instance of the parent whom you can query for the information 
that was given to it.

If not, please clarify your problem a little further.

Grtz,

Martin

> -----Original Message-----
> From: Lukas Bradley [mailto:[EMAIL PROTECTED]
> Sent: vrijdag 3 oktober 2003 16:43
> To: [EMAIL PROTECTED]
> Subject: TagExtraInfo on getVariableInfo() - can't get parent
> information?
> 
> 
> Hi all, I want to do this:
> 
> <my:tag array="myArray" var="myName" type="mycompany.MyObjectType">
>    <my:header>
>       ...
>    </my:header>
> 
>    <my:inner-loop> <%-- LOOP PERFORMED HERE --%>
>       ...
>    </my:inner-loop>
> </my:tag>
> 
> Where the object, a translation-time variable name, and 
> object type are
> defined in a parent tag, and the actual loop is performed 
> within a child
> tag.   In the example above, my:tag references the array and the
> translation-time information.  The my:inner-loop tag will 
> iterate over the
> array after certain header information is displayed.
> 
> I'm sure some of you are asking, why not do this?
> 
> <my:tag>
>    <my:header>
>       ...
>    </my:header>
> 
>    <my:inner-loop array="myArray" var="myName"
> type="mycompany.MyObjectType">
>    </my:inner-loop>
> </my:tag>
> 
> Please assume there are other things going on within these 
> tags, and it
> helps with readability if the array is declared within the parent.
> 
> So-- the TagExtraInfo class, its getVariableInfo() method, 
> and the TagData
> object are all ignorant to the parent information.  Is there 
> a way around
> this?  I'm presently using J2EE 1.3.1, but the 1.4b2 API offers no new
> features.
> 
> Thanks for any and all help.
> 
> Lukas
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to