Or you can write a servlet that will load all these variables and store them on the application scope.
Configure <load-on-startup> for this servlet in web.xml so that it is the first to get loaded.


[EMAIL PROTECTED] wrote:

Personally I prefer using a ServletContextListener myself.

Mark

-----Original Message-----
From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, 8 April 2004 12:06 PM
To: Struts Users Mailing List
Subject: Re: Application Context Variables


Sounds good to me.

----- Original Message ----- From: "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 11:52 PM
Subject: Application Context Variables



Hello, I need to instantiate some objects and store them in application context in my struts application. I was thinking of just writing a plugin and doing this in the init portion of the plugin. Is this the best option or is there a better or preferred way of doing this? Thanks, Sohil

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



Reply via email to