Thanks,
Steve
PS I still am interested in ppls view on whether all DB calls are model or there is a case when you could consider the DB call view
Jagdish Arora wrote:
Steven, since you are getting a NPE, could you tell us if is it the servlet
that is null, or is servlet.getServletContext() that is null?
amrinder
----- Original Message -----
From: "Steven Citron-Pousty" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Subject: How to access the Struts ConnectionPool from an ActionForm
DataSource dataSource = (DataSource)
servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY);
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

