File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection from web.xml file

 
Sam Tilley
Ranch Hand
Posts: 160
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic