cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerard van Enk" <>
Subject RE: Cocoon access from XSP
Date Wed, 26 Jan 2000 13:36:10 GMT
> I'm having trouble accessing objects that i have added to Cocoon
> from within
> XSP's.  I have this code which works fine in my Producer classes
> but throws
> a null pointer exception when I try and do it from within an XSP.
> Connection conn = ((DBBroker)
> director.getActor("dbPool")).getConnection();
> I thought XSP's were compiled into Producers?  Wouldn't they be able to
> access the Cocoon engine as easily as a hand coded one?  The XSPPage class
> extends AbstractProducer so I should be able to access director right?

Did you solve this problem?? I'd like to do something like this, but I don't
know if this is the right way to do it???


View raw message