There is an article about this subject on JGuru http://jguru.com/faq/view.jsp?EID=471960
The article speaks about a Struts example that defines a second servlet before the ActionServlet. But the struts-example.war of the Struts1.1b2 doesn't defined two servlets. Has someone this example ? I use Servlet2.3, so in a first time I would to make initializations in the ServletContextListener but as we can not display error on a JSP page I have to change my code. I don't understand well what kind of initialization can be done in the contextInitialized() method because a lot of initialization (like connection to an application server or database connection) can generate errors. The filter feature doesn't resolve the display of the error, isn't it ? -----Original Message----- From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]] Sent: 06 February 2003 15:18 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]

