• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

context file

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thanks.
H
 
reply
    Bookmark Topic Watch Topic
  • New Topic