vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hello. I'm trying to connect my jsp page to read a database on a windows 2003 server. <%@ page language="java" import="java.sql.*" %> <body> <% Class.forName("org.postgresql.Driver"); Connection myConn=DriverManager.getConnection("jdbc %> </body> But when i run this i get an "Exception report" error org.apache.jasper.JasperException: Exception in JSP: /jsp/pgtest.jsp:10 7: 8: Class.forName("org.postgresql.Driver"); 9: 10: Connection myConn=DriverManager.getConnection("jdbc 11: 12: %> 13: </body> Any idea anyone? Thank you. Shavonne |
| |||
| Shavonne Marietta Wijesinghe wrote: > Hello. I'm trying to connect my jsp page to read a database > on a windows 2003 server. > > Class.forName("org.postgresql.Driver"); > Connection myConn=DriverManager.getConnection("jdbc > > But when i run this i get an "Exception report" error > > org.apache.jasper.JasperException: Exception in JSP: My first instinct is to say: this is no exception generated by PostgreSQL. Ask somewhere else! But then I see the URL you use, and it looks wrong. Given that your database name is "formajax", you should connect with the URL: jdbc Yours, Laurenz Albe -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc |
| |||
| "Albe Laurenz" <laurenz.albe 'at' wien.gv.at> writes: > Shavonne Marietta Wijesinghe wrote: >> Hello. I'm trying to connect my jsp page to read a database >> on a windows 2003 server. >> >> Class.forName("org.postgresql.Driver"); >> Connection myConn=DriverManager.getConnection("jdbc >> >> But when i run this i get an "Exception report" error >> >> org.apache.jasper.JasperException: Exception in JSP: > > My first instinct is to say: this is no exception generated by PostgreSQL. > Ask somewhere else! > > But then I see the URL you use, and it looks wrong. > Given that your database name is "formajax", you should connect with the URL: > > jdbc Well, we can also have doubts that postgres is really listening on port 8080.. -- Guillaume Cottenceau, MNC Mobile News Channel SA, an Alcatel-Lucent Company Av. de la Gare 10, 1003 Lausanne, Switzerland - direct +41 21 317 50 36 -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc |
| ||||
| Thanks Laurenz . I changed the address as you said and it worked. wrong: jdbc right: jdbc -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc |
| Thread Tools | |
| Display Modes | |
| |