about initalization
at what point during application load does Struts preform its initalization? I need to insert an event right after that. How could I make sure of that? thanks yan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about initalization
in web.xml, struts controller servlet is set with a "load-on-startup" value. You can configure another servlet in this file with a "load-on-startup" value greater that struts'one. This way your servlet will load and configure after struts. Another (better ?) way is to create a struts plugin that will start and stop with struts servlet and will be initialized after struts has read it's configuration file. Nico. - Original Message - From: "Yan Zhu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, August 20, 2003 2:17 PM Subject: about initalization > > at what point during application load does Struts preform > its initalization? I need to insert an event right after that. How > could I make sure of that? > > thanks > > yan > > > > - > 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]
Re: about initalization
How about adding an InitServlet to your app's web.xml file" initservlet your.webapp.framework.InitServlet 2 Then derive your InitServlet from HttpServlet: public class InitServlet extends HttpServlet{ public void init() throws ServletException{ // call my super's init method super.init(); //... custom initializations here } } HTH, -jeff On Wednesday, August 20, 2003, at 07:17 AM, Yan Zhu wrote: at what point during application load does Struts preform its initalization? I need to insert an event right after that. How could I make sure of that? thanks yan - 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]