i am using tomcat and apache in linux i want to load a servlet when a web application is startup. I add a line in web.wml "<load-on-startup>ServletClassName</load-on-startup>" this servlet will run "context.setAttribute();" but i had null pointer exception when i tried to use "getServletContext" in other servlet in the application. do i need to have any other settings in configuration file in tomcat or web.xml?? thanks Get your FREE Email at http://mailcity.lycos.com Get your PERSONALIZED START PAGE at http://my.lycos.com ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
