A listener that listens for the contextInitialized event would probably
work.  You would write a class that implements ServletContextListener
and then register the listener in web.xml like so:

<listener>
        <listener-class>
                com.whatever.MyListener
        </listener-class>
</listener>

-----Original Message-----
From: Takhar, Sandeep [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 08, 2004 7:26 AM
To: Struts Users Mailing List
Subject: RE: Application Context Variables

If you have filters this might be an option.  

sandeep

-----Original Message-----
From: MARU, SOHIL (SBCSI) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 6:52 PM
To: Struts Users Mailing List
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]

"The sender believes that this E-Mail and any attachments were free of any virus, 
worm, Trojan horse, and/or malicious code when sent. This message and its attachments 
could have been infected during transmission.  By reading the message and opening any 
attachments, the recipient accepts full responsibility for taking proactive and 
remedial action about viruses and other defects. The sender's business entity is not 
liable for any loss or damage arising in any way from this message or its attachments."


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to