Hi all!
I have created a class that implements the ServletContextListener class
then I have added the following to the web.xml.
then I've added som <context-param>. The listener compiles and runs and I can see when the
tomcat starts that it is ok. Now when I try to access a
servlet I can do this ones and after the tomcat exists. there must be something wrong with the listener class. I can only access this method ones and then the Tomcat server shuts down.
does anyone know whats wrong? As a paranthese I just wonder where to stored database connection info. Previous i stored it i
java code but it wasn't so good because I have to change all files if ex password changed. Now I store it in web.xml but I feel it is security risks with this. What is the proper way to do it?
// Mathias
[ November 03, 2003: Message edited by: Mathias Nilsson ]