I want to load a class on tomcat startup which will actually initialize variables in other classes.
i have edited the appName/WEB-INF/web.xml as follows
<servlet>
<servlet-name>LoadConfigurations</servlet-name>
<servlet-class>Loader.LoadConfigurations</servlet-class>
<init-param>
<param-name>env</param-name>
<param-value>dev</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
and i have placed my servlet LoadConfiguration in /appName/WEB-INF/classes
how do i check whether the servlet is beig called or not ? because when i try to display the value from initialized class it returns null