Hi Andrew,

If what you need is to call JSPs recursively, MicroNova YUZU tag library
(http://sourceforge.net/projects/micronova-yuzu) supports recursion
passing arbitrary (non-string) objects using <m:call> and <m:param> tags
like this:

<m:param var="input"/>

<tag:tree>
  <c:forEach var="child" items="${input.root.children}">
    <m:call path="dfs.jsp">
      <m:set property="root" value="${child}"/>
    </m:call>
  </c:forEach>
</tag:tree>

Hope this helps.

Best Regards,  Makoto Nagata


Andrew Janian wrote:
Does anyone know if I am able to use recursion to traverse a tree but then to use a 
tag inside the recursive method?  If that was unclear, I want to know if I can do this:

<%!
void dfs(Node root){
%>
        <tag:tree>
<%!
        Vector children = root.getChildren();
        for(int i=0; i<children.size(); i++){
                dfs((Node)(children.elementAt(i)));
        }
%>
        </tag:tree>
<%!
}
%>

Thanks,

Andrew Janian

---------------------------------------------------------------------
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