• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

PageData/Servlet problems

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jason
Can you post your code that passes them and the code that processes them?
Thanks
 
Jason Stockmann
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey I got it figured out...I was closing the DBConnection to early, that's all...thanks for those who helped!
 
I AM MIGHTY! Especially when I hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic