This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hello, I am using JSP with Derby on Netbeans, and I want to fix my context.xml file so I don't have to connect on each page idividually. I'm not quite sure how to edit the context.xml file so that it specifies the url of my database location. Also, I'm not sure how I can open a database connection in my project pages without specifying the database url. I know it might be a bit basic, but I'm used to php where I open and close database connections on each page individually. A nudge in the right direction would be appreciated.