tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Janian" <ajan...@scottrade.com>
Subject Recursion in JSP
Date Wed, 04 Aug 2004 21:26:27 GMT
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: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message