Yes. Check with servlet-APIdoc...

Alexander 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 06, 2005 11:10 AM
To: user@struts.apache.org
Subject: AW: Newbie: Where to put instance for database access?

>Should it be stored in the ServletContext for application scope? But
>how do I access this instance from my Actions? 

>getServlet().getServletContext().getAttribute(xxx)

is it the same as request.getSession().getServletContext().getAttribute(xxx)
?

Peter

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