Re: Exposing Application Scope Attributes in Layered Applicatoins

2001-08-05 Thread Craig R. McClanahan
On Sun, 5 Aug 2001, Ted Husted wrote: > "Craig R. McClanahan" wrote: > > > The Generic Connection Pool works fine with the dbTags, but they can > > > lookup the DataSource through the pageContext. > > It was added late in the development cycle, but they do support JNDI > lookups, as well as a

Re: Exposing Application Scope Attributes in Layered Applicatoins

2001-08-05 Thread Ted Husted
"Craig R. McClanahan" wrote: > > The Generic Connection Pool works fine with the dbTags, but they can > > lookup the DataSource through the pageContext. It was added late in the development cycle, but they do support JNDI lookups, as well as a DataSource in the ServletContext, and so they are com

Re: Exposing Application Scope Attributes in Layered Applicatoins

2001-08-05 Thread Craig R. McClanahan
On Sun, 5 Aug 2001, Ted Husted wrote: > So there is not a way to access the ServletContext attributes without a > direct link to a servlet or a JSP? > Well, you could pass a reference to the ServletContext into your bean, but that's still requiring a reference to the web tier APIs -- which it

Re: Exposing Application Scope Attributes in Layered Applicatoins

2001-08-05 Thread Ted Husted
So there is not a way to access the ServletContext attributes without a direct link to a servlet or a JSP? The Generic Connection Pool works fine with the dbTags, but they can lookup the DataSource through the pageContext. If it were possible, it may also be interesting to be able to tap into t

Re: Exposing Application Scope Attributes in Layered Applicatoins

2001-08-05 Thread Craig R. McClanahan
On Sat, 4 Aug 2001, Ted Husted wrote: > Is there a way to hook into a application scope attributes without a > direct link to a servlet? > > Perhaps through JNDI? > > Specifically, I'd like to hook into the Generic Connection Pool's > datasource, that's exposed as "org.apache.struts.action.

Exposing Application Scope Attributes in Layered Applicatoins

2001-08-04 Thread Ted Husted
Is there a way to hook into a application scope attributes without a direct link to a servlet? Perhaps through JNDI? Specifically, I'd like to hook into the Generic Connection Pool's datasource, that's exposed as "org.apache.struts.action.DATA_SOURCE" in the application context, without specif