Thank you for your help
I changed my class a bit. I am preparing statements in a method instead of a costructor
I call the method
Test() from my driver class to prepare the Statment.
and I am calling getData(String value) method later from different program.
Do you know how can i hold the connection after preparing the statement. Because
for some reason connection becomes null and it is causing the problem
[edited to add code tags]
[ February 03, 2005: Message edited by: Jeanne Boyarsky ]