File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!
 
 
subject: PageData/Servlet problems