why do I get an exception in JSP while in a standalone app ....

I've got this piece of code:

Connection c=DriverManager.getConnection(Strings.DBURL,Strings.USER,Strings.PASS);
Statement st=c.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet rs=st.executeQuery("select username,played,wins,losses,rating from users where username='"+white+"' or username='"+black+"'");

When I create the statement with the two parameters in a JSP page, I get an exception:

java.lang.AbstractMethodError: org.postgresql.jdbc1.Jdbc1Connection.createStatement(II)Ljava/sql/Statement; org.apache.jsp.jsp.gameFinished_jsp._jspService(gameFinished_jsp.java:61)

When I run the same code in a separate class outside JSP it works. Why ?


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!