wood burning stoves 2.0*
The moose likes JDBC and the fly likes getting column values from database on a JSP without oprning connection in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "getting column values from database on a JSP without oprning connection in JSP" Watch "getting column values from database on a JSP without oprning connection in JSP" New topic
Author

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

priyanshu bhardwaj
Greenhorn

Joined: Jul 30, 2005
Posts: 20
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:
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3700
    
    5

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.


My Blog: Down Home Country Coding with Scott Selikoff
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: getting column values from database on a JSP without oprning connection in JSP
 
Similar Threads
Jsp page refresh automatically after 10 secs.
Connection broker in JSP
Java Servlets and Threads - Am I in trouble ?
How do I access my dataaccess class from JSP?
Connection Release.....