![]() |
| ||
| How do I access a PostgreSQL DB? I just got a JSP hosting account and I'm wondering how I can connect to the PostgreSQL DB and execute queries. According to the host's FAQ, the database URL is: jdbc:postgresql://localhost/username,username,password . |
| ||
| Re: How do I access a PostgreSQL DB? You don't access databases through JSP. JSP comes paired up with servlets written in Java. The servlets (and underlying classes) does all the heavy work, while the JSPs just view the results. |
| ||
| Re: How do I access a PostgreSQL DB? You can't just do it with <%? |
| ||
| Re: How do I access a PostgreSQL DB? No idea, I never tried. I manage my database connections with Hibernate (persistence framework), and put only view code in the jsp's. |
| ||
| Re: How do I access a PostgreSQL DB? Anyway, what's the Java code for accessing the DB? |
| All times are GMT -4. The time now is 2:02 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC