You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by David Kavanagh <da...@dotech.com> on 2006/02/08 13:42:13 UTC
access to environment in sitemap component
I'm working on this JasperSerializer and while it works pretty well, I'm
trying to resolve image locations better. To do this, I'd like access to
the cocoon Environment so I can get the app's context path. I was
looking over the javadoc and just haven't found what I'm looking for.
Can anyone help?
Thanks,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Cocoon-Users] access to environment in sitemap component
Posted by David Kavanagh <da...@dotech.com>.
I think I answered my own question. (finally!)
Environment env = CocoonComponentManager.getCurrentEnvironment();
Thus Spoke David Kavanagh:
> I'm working on this JasperSerializer and while it works pretty well,
> I'm trying to resolve image locations better. To do this, I'd like
> access to the cocoon Environment so I can get the app's context path.
> I was looking over the javadoc and just haven't found what I'm looking
> for. Can anyone help?
>
> Thanks,
> David
>
> ---------------------------------------------------------------------
> 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