servlet member variable of Action is avaliable to gain access to
ServletContext.

ServletContext application = servlet.getServletContext();
DataManager manager =
(DataManager)application.getAttribute(Constants.DATA_MANAGER);

-----Original Message-----
From: Mark Kaye [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 9:36 AM
To: Struts Users Mailing List
Subject: [Core] Easy question!


Within an action, how can I get hold of an Object that has been stored
in the ServletContext inside which my struts app is running?

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


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

Reply via email to