Something like this:
MyActionServlet extends ActionServlet{
init(){
super.init;
Torque.init("Torque.properties");
}
}BAL
From: "Andrew Hill" <[EMAIL PROTECTED]> Reply-To: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: One-time initializing in struts Date: Thu, 13 Mar 2003 14:35:16 +0800
Struts PlugIn might be the best option for that. Check the docs. Dont think its supported in 1.0 though, just 1.1. (With each 1.1.x version having a different interface!)
-----Original Message----- From: Karl [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 March 2003 14:26 To: Struts Users Mailing List Subject: One-time initializing in struts
Is there a way to do one-time initialization in struts without having to put
check logicn in every action?
I want to use turbine as my persistance back-end but I need to call Torque.init("Torque.properties"); somewhere.
--------------------------------------------------------------------- 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]
_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

