> 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 ) {
    <jsp:include page=<%= \"OUDisplay.jsp?partial=true&id=\" + id %>" />
  }
  ...
}
ResultSet.close()
Statement.close()
Connection.close()
-------------------

Now, I have tried putting a "breakpoint" in my JSP (throw ServletException). Wherever 
I put it, the JSP page runs into it, but the NullPointerException doesn't occur. I've 
tried putting it on the last line of JSP, still no NullPointer.

This lead me to believe that the error is occuring AFTER my JSP emerges from a 
recursion. So, it goes into the loop, calls itself once (there was only one level of 
sub-tree in that test example), the called JSP finishes it's job, resturns to "upper 
itslef" and then inside that "while( ResultSet.next() )" I get the error. Like the JSP 
page that was called in the recursion closed not just it's own JDBC objects, but also 
it's parents.

Any comment?

Nix.


Reply via email to