|
I've loaded Tomcat on my system, and would like to write some servlets that connect to a postgres database. I've downloaded the postgres java driver and know I have to resolve the driver before I can connect to it. The way I do this with standalone applications is by calling them like java -Djdbc.drivers=org.postgresql.Driver -cp postgres.jar:otherjars... Main
I'm not sure how to load the postgres driver under tomcat. I'd imagine it's easy, but I'm not sure how to go about it! |