I'm writing a custom taglib (1.2) which contains loop tag and nested ones. Does anyone know if there's a way, inside a first loop tag, to know if there is more occurrences of the same loop tag later in the JSP ?
Example :
<tt:myLoopTag>
<%--
Normally, if "myLoopTag" was the only one tag in the JSP,
I would do some stuff in the doEndTag method
--%>
</tt:myLoopTag>
...
<tt:myLoopTag>
<%--
But I have a second "myLoopTag" here, so I would like to do
some stuff in the doEndTag method of this tag, not in the first one
--%>
</tt:myLoopTag>
Hope I'm clear enough ..
NB: Unfortunately, I don't think this post is useful to me ...
Thanks !