How to do one time initialization with tomcat

2006-10-10 Thread Divick Kishore
Hi, I want to do one time initialization of some data at my back end code when using tomcat as my container. To be precise I want to initialize the DB connection to mysql db and later when connection is requested from my DB layer I want to simply return the connection from a connection

Class not found problem with simple jsp

2006-10-09 Thread Divick Kishore
I am using Tomcat 5.5 and I am testing a very simple jsp deployed in tomcat. I have a directory structure like this : webapps/wm/test.jsp webapps/WEB-INF/web.xml webapps/WEB-INF/classes/DBTest.class and when I access http://localhost:8080/wm/test.jsp , I get the following exception:

Re: Class not found problem with simple jsp

2006-10-09 Thread Divick Kishore
It's highly recommended that all classes be in packages. This may be your problem. Wow that solves my problem. I thought that running without package would be more simpler but it turned up other way round. I am still wondering why at all should a class without a package cannot be loaded by