Re: What's the word on a Servlet/JSP including itself in recursion?

2001-12-18 Thread Tom Drake
This will never work! The include statement will get a new connection to the database and execute an entirely new query, while the first query / result set is active. You will quickly run out of connections. Secondly, at the risk of parroting earlier responses, I would heartily suggest that you

What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Nikola Milutinovic
Hi all. Never got a response on this one. Suppose I have a JSP page or a Servlet that includes ITSELF in recursion. I'm doing this because I have a n-tree structure and I wish to display a given node with all it's subnodes. I need recusrion. Period. So I thought that something like

Re: What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Mahesh Vaidya
IMHO Donot do that way. Keep a single Jsp/Servlet. Rather encapsulate tree in any suitable Java Collection. (viz. java.util.Tree) Use iterator interface and accomplish whatever you want to -Mahesh. --- Nikola Milutinovic wrote: Hi

RE: What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Joe Cheng
How are you passing the resultSet back and forth between the JSP's? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]

Re: What's the word on a Servlet/JSP including itself in recursion?

2001-12-17 Thread Nikola Milutinovic
How are you passing the resultSet back and forth between the JSP's? I'm not. This is the scatch of the code: JSP: OUDisplay.jsp DriverManager.getConnection() Connection.createStatement() Statement.executeQuery() while( ResultSet.next() ) { ... if( recurse )