cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Battagli" <leonardo.batta...@cedac.com>
Subject R: R: I: Reading Cocoon component from Servlet Filter
Date Mon, 22 Jan 2007 09:02:12 GMT

I have to do some simple Jdbc access, but I'd like to reuse the code we have
already developed, that is the same I can use from inside flowscript thanks
to our cocoon components.

If I cant' get 'cocoon servlet' I'll rethink my architecture, I mean I'll
put in the servlet some 'jdbc code'

> -----Messaggio originale-----
> Da: Joerg Heinicke [mailto:joerg.heinicke@gmx.de]
> Inviato: venerdì 19 gennaio 2007 23.21
> A: users@cocoon.apache.org
> Oggetto: Re: R: I: Reading Cocoon component from Servlet Filter
>
>
> On 19.01.2007 12:11, Leonardo Battagli wrote:
>
> > It sounds a bit strange to me If can't get from inside a
> ServletFilter all
> > the component I can use inside a flowscript
>
> No, it's a completely different environment. The filter is outside of
> the servlet, the flowscript inside of it. It is also nothing specific
> for Cocoon, it's the servlet API that enforces this separation of
> concerns. (Not from the beginning btw. In former versions you could
> access the servlets from the servlet context which is no
> longer possible
> in newer versions. The context is available from the filter.)
>
> You probably have to rethink your architecture. What is it what you
> actually want to do in your filter?
>
> Jörg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message