File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Connection from web.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Connection from web.xml file" Watch "Connection from web.xml file" New topic

Connection from web.xml file

Sam Tilley
Ranch Hand

Joined: Dec 05, 2001
Posts: 160
Hi, i am trying to open the connection to my database from a servlet but am having a couple problems.
Initially i simply used to get access to my database but now we want to keep it in the xml file. As per the instructions in i set it up as after altering my xml file as required (i am running Tomcat) but i am having problems about finding out what "application" is and why forte will not resolve it.
Tad worried that i am looking it in the face but any help would be appreciated

Sam Tilley SCJP, SCWCD
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

'application' is used in JSP and stand for 'ServletContext'.
If you want to use it in a Servlet you should use this:

[ July 10, 2002: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
I agree. Here's the link:
subject: Connection from web.xml file
It's not a secret anymore!