This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes PageData/Servlet problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "PageData/Servlet problems" Watch "PageData/Servlet problems" New topic
Author

PageData/Servlet problems

Jason Stockmann
Greenhorn

Joined: Jun 25, 2002
Posts: 6
OK, very confused here...I am trying to pass 2 different resultsets from a class into a jsp to display onscreen, however, when I try to do 2 pageData with each having their own resultset, i get this:
JdbcVector:index out of range index 2 >=2
It looks like it gets through the class, and even the first pageData and resultset, but once it tries to obtain the 2nd rs, it freaks out
Any ideas?? Thanks!
Jason
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Jason
Can you post your code that passes them and the code that processes them?
Thanks


Dave
Jason Stockmann
Greenhorn

Joined: Jun 25, 2002
Posts: 6
Ummm, well, unfortunately, no. Kinda not allowed to. I know this causes an issue, but I gotta follow rules, you know? So, I guess if anyone just has some ideas, that would be great.
Thanks,
Jason
sim sim
Ranch Hand

Joined: Jun 05, 2002
Posts: 55
Hi Jason,
If u r using a for loop, then check out the initialization and condition, there might be a problem. If u can post only the for loop part(i am assuming that u r using a loop), it would be more helpful.
Jason Stockmann
Greenhorn

Joined: Jun 25, 2002
Posts: 6
Hey I got it figured out...I was closing the DBConnection to early, that's all...thanks for those who helped!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: PageData/Servlet problems
 
Similar Threads
Does hibernate support Stored Procedure out parameters?
How to create Oracle stored procedure and return ResultSet as OUT param...?
A few clarifications needed please...
session.getAttribute
Maximum open cursors exceeded