cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <cromo...@gmx.net>
Subject Re: Context scope available in cocoon?
Date Mon, 10 Jan 2005 16:31:53 GMT

>
>
> Hi Stephan,
>
> I'm using an Avalon component to set some config parameters in the 
> context. My component implements Contextualizable and Configurable. I 
> have a method like:
>
> public void contextualize(Context con) throws ContextException
> {
>    DefaultContext defCon = (DefaultContext)con;
>    this.context = 
> (HttpContext)defCon.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT);
> }
>
> then in the configure method I can do a context.setAttribute()
>
Works perfect. Thank you!

---
Stephan


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


Mime
View raw message