Can you make it more detail? Do you have sample code on this? FYI, I
have already configured in web.xml to load the ActionServlet when server
starts up.  

-----Original Message-----
From: zhangfan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 19, 2007 6:11 AM
To: user@struts.apache.org
Subject: RE: Load an .xml file when server start up

> On 4/18/07, Zhang, Larry (L.) <[EMAIL PROTECTED]> wrote:
> > I need to load an .xml file when Websphere server starts up. I am 
> > using Struts ActionServlet as the only servlet in the app and I do 
> > have a CustomProcessor extending TilesRequestProcessor. I am trying
to 
> > load the .xml file when the server starts up. I configured to load 
> > ActionServlet when server starts up in web.xml. Where should I put
my 
> > code to load the .xml file during the server starts up.
> >
> > Thanks.

Maybe the PlugIn interface can provide what you want.
It's notified just before and after the application life cycle. 
http://struts.apache.org/1.3.8/apidocs/index.html
Also, you should configure to load ActionServlet when server starts up
in web.xml, so that the your plugin will be invoked before that.

Good luck.



---------------------------------------------------------------------
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]

Reply via email to