cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: environment
Date Tue, 24 Jul 2001 09:19:19 GMT
> Torsten Curdt wrote:
> 
> Can anyone give me a hint...
> 
> How do I get the environment within an action?
> Within act it is probably the SourceResolver, right?!
> (may I up-cast the SorceResolver to Environment?)
> 
Yes, but casting is a bad idea. And to get a url
you only need the SourceResolver and not the Environment.

> Anyway, this will not help...
> I want to use the cocoon: url in configure()
> 
> Possible so far?
> 
Putting it simple: No.

As there is more and more need in having the SourceResolver
available everywhere (especially during configuration),
I started several days ago the thread about using a
ThreadLocal variable to put the SourceResolver in.
I thought of a public instance variable of the Cocoon class,
e.g. Cocoon.localSourceResolver or something like that.
The Cocoon class itself could set this whenever the process()
method is invoked, but this might be too late for some
components as they are configured earlier on.

Carsten

> Thanks
> --
> Torsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 

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


Mime
View raw message