> 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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to