Well, that must be it then! I should just move all my code that i want inited to the init then righ? Is that safe to do?
Thanks! On Thursday 12 December 2002 16:19, Jacob Kjome wrote: > Hello Alexander, > > Note that loading on startup only calls the init() method. It does not > call doGet() or anything like that. Just making sure you understood that. > > Jake > > Thursday, December 12, 2002, 4:09:41 PM, you wrote: > > AW> Hi there... I have 1 servlet to start at startup, but it doesnt. If i > call the AW> servlet from a browser, it starts fine. > > AW> My web.xml has: > > AW> <servlet> > AW> <servlet-name>Startup</servlet-name> > AW> <description>Servlet that starts different startup classes and > AW> stuff.</description> > AW> <servlet-class>com.difh.servlets.Startup</servlet-class> > AW> <load-on-startup>1</load-on-startup> > AW> </servlet> > > AW> and > > AW> <servlet-mapping> > AW> <servlet-name>Startup</servlet-name> > AW> <url-pattern>/srv/com.difh.servlets.Startup</url-pattern> > AW> </servlet-mapping> > > AW> Any clues as to why this doesn't get run when tomcat starts? > > AW> Thanks! > > > AW> -- > AW> To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> AW> For additional > commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>