If it is possible to work with a resultset, how do you pass it to the servlet from the bean? I tried.. it would not work..
The problem had something to do with having the connection in the bean not the servlet and so I could not pass the resultset.
the resultset does not contain the data does...
I am working on an application that uses sql data (tomcat and MS sql server). There will be about 15-20 simultaneous clients. I would like to know if my logic makes any sense. I am very new to java, any kind of help would be great..
To access the sql server, I am going to write a bean that...
This is exceedingly absurd.. I have been trying this 20 line stupid code for a while.. Suddenly it started to work.. I have done absolutely nothing special..
It now gives another error.. The connection is there.. Do you know by any chance how to fix this?
java.sql.SQLException: Could not find...
When I use try-catch it compiles and gives a classnotfoundException (System.out.print(theexception))..
This is very frustrating.. I downloaded a document on how to use a library in eclipse.. Everything seems normal.. There must be something I am missing..
I put the jar file in my class path...
Thanks for the reply..
I am using eclipse to write and compile.. I strugled a lot to put the jtds.jar in my classpath.. It gave classnotfound/implemented??.. Something like that.. Then downloaded and put the source file in the class path.. The code did not give any errors about the class but...
I am trying to connect to mssql database. The error I receive is,
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at Baglanti.main(Baglanti.java:12)
Here is the code.. (This is my first code so I have no idea what is happenning)
import java.sql.Connection...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.