• 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

getting column values from database on a JSP without oprning connection in JSP

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if I want to take some name form database but don't want connection in JSP
I open a connection in a class
and call that class method from the JSP by making a object of that class in JSP I'm getting a blank combo box i'e no results from database
I also used ResultSet object rs.next()
But there is this problem
Please try to understand and resolve the problem
Thanks
for reading my problem and giving time to it
bye :roll:
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try adding logging or System.out.println() statements to the class method you are calling. Without a specific error message or example code, its hard to tell what the problem could be.
 
reply
    Bookmark Topic Watch Topic
  • New Topic