you need to connect to the postgresql port 5432 NOT 8080 (the tomcat
port).


> -----Original Message-----
> From: Sagine E.Ferrus [SMTP:[EMAIL PROTECTED]]
> Sent: 20 May 2002 04:16
> To:   [EMAIL PROTECTED]
> Subject:      newbie
>
> I'm trying to have my jsp page connect to a postgresql database.  But when
> i try to view the page it stalls basically time's out, at this line
> Connection
> myConn=DriverManager.getConnection("jdbc:postgresql://192.168.1.30:8080/da
> tabaseName?user=postgres&password=postgres");
> is it the port? cause obviously 8080 is the tomcat port and it wont work
> at all if i put 5432 which is the postgresql port.
> Help
> Sagine
>
> _____________________________________________________________
> Visit our Caribbean Community at http://www.islanderonline.com
>
> _____________________________________________________________
> Promote your group and strengthen ties to your members with
> [EMAIL PROTECTED] by Everyone.net  http://www.everyone.net/?btn=tag
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

--
**********************************************************************
The Truworths e-mail facility may not be used for the distribution of
chain letters or offensive email.  Truworths hereby distances itself
from and accepts no liability for the unauthorised use of its e-mail
facility or the sending of e-mail communications for other than
strictly business purposes.  Truworths furthermore disclaims liability
for any unauthorised instruction for which permission was not granted.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to