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 Retriving data from database and displaying it in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Retriving data from database and displaying it in JSP" Watch "Retriving data from database and displaying it in JSP" New topic
Author

Retriving data from database and displaying it in JSP

renu richard
Ranch Hand

Joined: Oct 06, 2008
Posts: 116
Hi,
In my application, i am reading the data from the database and then displaying it in another JSP.

In program 1, i am calling the executeQuery method, which is getting the connection object and then exectuing the query.


Program 2 shows how the executeQuery method is defined.


Now the problem is, eventhough aoCRS.size() is retuning size as 1, the line loRS.next() is not getting executed and the it is going to the else part.
Could someone please help me on this.


Cheers,
Richard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Retriving data from database and displaying it in JSP
 
Similar Threads
size and next method
Using populate in CachedRowSet
JDBC problems
Html Input to oracle through servlet and JSP output
Displaying the data from the list in JSP