aspose file tools*
The moose likes JDBC 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
Bookmark "Connection from web.xml file" Watch "Connection from web.xml file" New topic
Author

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 http://www.horstmann.com/sjsu/tomcat.html 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
Thanks
Sam


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:

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

Regards, Rene Larsen
Dropbox Invite
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection from web.xml file