AW: Newbie: Where to put instance for database access?

2005-07-06 Thread Peter . Zoche
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

Re: AW: Newbie: Where to put instance for database access?

2005-07-06 Thread Stéphane Zuckerman
[EMAIL PROTECTED] a écrit : 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) ? Yes. --