When I try to use a properties file to initialize my db in a servlet
that will display data in a jsp, the jvm gives me a FileNotFound
exception. I put the properties file in each directory of the tree of
the servlet (jswdk 1.0.1):
examples/WEB-INF/servlets/Record, one copy at each level, and still I
get the error when the servlet is invoked. ("Record" is the package
with the two classes I'm using.

In my doPost() method, I instantiate a class RecordObj, which in turn
instantiates a Singleton database connection. The singleton class
accesses a properties file to make the connection. I am reusing
previous code, and keeping this application modular. I need to work
with jswdk 1.0.1, and would prefer not having to set parameters in
the webserver.xml file, because it is surely a different method from
setting parameters in the web.xml file of tomcat. I'm trying to
reduce the implementation details right now while I try to get a
handle on servlets and jsp.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to