This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Need help 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 "Need help" Watch "Need help" New topic
Author

Need help

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
Hi List[],

When i am entering the data in the table its not showing all the records in the table.
i.e when i entered 25 records in the table its shown only 20 records.

I am using MYSQL . Please help me.

For getting connection i am using singleton class
and my class look like

try
{
con = ConnectionFactory.getConnection();
.
.
.
.
.
.
.
.}catch(Exception e)
{
e.printStack();
}
finally {
try {
if (con != null) {
con.close();
}
} catch (Exception e) {
log.error("Error in closing" + e);
}
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3816

Why not show us the code between "try" and "catch", perhaps that would give an idea.


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Sandeep Kumar Jakkaraju
Ranch Hand

Joined: Feb 25, 2009
Posts: 75
Is your program multi-threaded !!!

Where is this code in ???

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37945
    
  22
And please don't use thread titles like "need help".
pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 300
This is my code.And i am using Single ton class to get the connection.

Amir Iqbal
Ranch Hand

Joined: Jun 23, 2007
Posts: 97
well first of all it really a messy code, try to use simple code by putting corresponding code into seprate methods
then comes towards the actual problem.
would you please tell what kind of exception or error you are facing when you execute this code???

what comes in "j" after the following line executes??


tell us please.

Regards,

i am Java +ve Now !
 
Don't get me started about those stupid light bulbs.
 
subject: Need help
 
Similar Threads
not insering all the records (please help!!)
Oracle sql exception:
How to get particular method of DAO class through struts-config.xml and Action clas.
jasperException
java.sql.SQLException: Io exception: The Network Adapter could not establish the connection