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

Reply via email to