You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by "Gros, Martin" <gr...@emc.com> on 2005/05/02 09:50:56 UTC

JSTL Recursion possible??

JSTL and recursion, is this possible?
 
e.g. walk an xml tree with same element names on different levels?
 
<a>
    <b/>
    <b/>
    <c>
        <b/>
    </c>
    <c>
        <b>
            <b/>
        </b>
    </c>
    <b>
</a>
 
i want an output like
 
b
b
--b
--b
----b
b
 
 
is this possible? if yes, could you provide a short example?
 
thanks
 
Martin

Re: JSTL Recursion possible??

Posted by Rahul P Akolkar <ak...@us.ibm.com>.
I, for one, did not understand the question (or what the nesting you show 
has to do with "JSTL recursion"). Can you please try again?

Thanks,
-Rahul

On 5/2/05, Gros, Martin <gr...@emc.com> wrote:
> JSTL and recursion, is this possible?
> 
> e.g. walk an xml tree with same element names on different levels?
> 
> <a>
>    <b/>
>    <b/>
>    <c>
>        <b/>
>    </c>
>    <c>
>        <b>
>            <b/>
>        </b>
>    </c>
>    <b>
> </a>
> 
> i want an output like
> 
> b
> b
> --b
> --b
> ----b
> b
> 
> is this possible? if yes, could you provide a short example?
> 
> thanks
> 
> Martin
> 
>