Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Interfaces Jdbc > JSP to PostgreS...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 1916 of 1997
Post > Topic >>

JSP to PostgreSql

by shavonne.marietta@[EMAIL PROTECTED] ("Shavonne Marietta Wijesinghe") Apr 1, 2008 at 11:19 AM

This is a multi-part message in MIME format.

------=_NextPart_000_006D_01C893EA.448275D0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello. I'm trying to connect my jsp page to read a database on a windows =
2003 server.=20

<%@[EMAIL PROTECTED]
 page language=3D"java" im****t=3D"java.sql.*" %>
<body>
<%
Class.forName("org.postgresql.Driver");
Connection =
myConn=3DDriverManager.getConnection("jdbc:postgresql://XXX.XXX.X.X/datab=
ase/FormAjax?user=3Dpostgres&password=3Dform");
%>
</body>

But when i run this i get an "Exception re****t" error

org.apache.jasper.JasperException: Exception in JSP: /jsp/pgtest.jsp:10
7:=20
8: Class.forName("org.postgresql.Driver");
9:=20
10: Connection =
myConn=3DDriverManager.getConnection("jdbc:postgresql://192.168.2.3:8080/=
database/FormAjax?user=3Dpostgres&password=3Dform");
11:=20
12: %>
13: </body>

Any idea anyone?
Thank you.
Shavonne
------=_NextPart_000_006D_01C893EA.448275D0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello. I'm trying to connect my jsp =
page to read a=20
database on a windows 2003 server. </FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&lt;%@[EMAIL PROTECTED]
 page language=3D"java"=20
im****t=3D"java.sql.*" %&gt;<BR>&lt;body&gt;<BR>&lt;%</FONT></DIV>
<DIV><FONT face=3D"Courier New"=20
size=3D2>Class.forName("org.postgresql.Driver");</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Connection=20
myConn=3DDriverManager.getConnection("jdbc:postgresql://XXX.XXX.X.X/datab=
ase/FormAjax?user=3Dpostgres&amp;password=3Dform");</FONT></DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2>%&gt;<BR>&lt;/body&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>But when i run this i get an "<FONT=20
face=3D"Times New Roman" size=3D3>Exception re****t" =
</FONT>error</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2><STRONG>org.apache.jasper.JasperException:=20
Exception in JSP: /jsp/pgtest.jsp:10</STRONG></FONT><BR><FONT =
face=3D"Courier New"=20
size=3D2>7: <BR>8: Class.forName("org.postgresql.Driver");<BR>9: <BR>10: =

Connection=20
myConn=3DDriverManager.getConnection("jdbc:postgresql://192.168.2.3:8080/=
database/FormAjax?user=3Dpostgres&amp;password=3Dform");<BR>11:=20
<BR>12: %&gt;<BR>13: &lt;/body&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any idea anyone?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thank you.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Shavonne</FONT></DIV></BODY></HTML>

------=_NextPart_000_006D_01C893EA.448275D0--
 




 4 Posts in Topic:
JSP to PostgreSql
shavonne.marietta@[EMAIL   2008-04-01 11:19:36 
Re: JSP to PostgreSql
laurenz.albe@[EMAIL PROTE  2008-04-01 12:08:43 
Re: JSP to PostgreSql
shavonne.marietta@[EMAIL   2008-04-02 11:40:35 
Re: JSP to PostgreSql
gc@[EMAIL PROTECTED] (Gu  2008-04-01 12:20:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Thu Jul 24 2:06:00 CDT 2008.