Thanks Robert, that's what I was looking for. -----Original Message----- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 06, 2003 5:04 PM To: Struts Users Mailing List Subject: RE: Application Startup
Well, there is no guarantee that your application will not _receive_ requests while it is initializing but... If the initialization servlet is configured to load before the Struts ActionServlet, and your application depends on the Struts ActionServlet to handle all application requests, you should be safe. You may want to read the Servlet spec which your container implements to make sure. robert > -----Original Message----- > From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 06, 2003 9:18 AM > To: Dmitri Ilyin; Struts Users Mailing List > Subject: RE: Application Startup > > > Well, I'm using servlets 2.2, so both ServletContextListener and > Filters are out. > > Now, as for the first idea, even if I designate that the servlet > which I will use to do that initialization starts before the > struts controller. Do I guarantee that all initializations done > by this servlet will be finished before the application receives > any requests? > > This is very important, actually. > > Thanks > > -----Original Message----- > From: Dmitri Ilyin [mailto:[EMAIL PROTECTED]] > Sent: Thursday, February 06, 2003 4:09 PM > To: Struts Users Mailing List > Subject: Re: Application Startup > > > You can use Filter also, just do what you need at the first request > > Dmitri > > ----- Original Message ----- > From: "Heligon Sandra" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Thursday, February 06, 2003 3:01 PM > Subject: RE: Application Startup > > > > The problem with the ServletContextListener is that we can not > > display error to the client if an error occur, isn'it ? > > > > > > -----Original Message----- > > From: Robert Taylor [mailto:[EMAIL PROTECTED]] > > Sent: 06 February 2003 14:35 > > To: Struts Users Mailing List > > Subject: RE: Application Startup > > > > > > Use a Servlet and designate it to load on start up, or if > Servlet2.3 spec, > > look a ServletContextListener. > > > > robert > > > > > -----Original Message----- > > > From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, February 06, 2003 8:14 AM > > > To: Struts (E-mail) > > > Subject: Application Startup > > > > > > > > > Hi everyone, > > > > > > I'm using Struts 1.0.2. > > > > > > I need to do some stuff on application startup. I consulted the > > > documentation, and noticed that there's support for such a thing > > > in Struts 1.1. No mention of it in 1.0.2, though. > > > > > > Is there a way I can do some action on application startup in > > > Struts 1.0.2. > > > > > > Please advise, > > > > > > Thanks, > > > > > > Tarek M. Nabil > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

