cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yuryx <yu...@mobicomk.donpac.ru>
Subject Re: cocoons ServletContext
Date Fri, 01 Mar 2002 17:13:16 GMT
>
>
>>ServletContext servContext = (ServletContext)
>>objectModel.get(HttpEnvironment.HTTP_SERVLET_CONTEXT);
>>
>>HttpEnviroment... Thats Ok with me :)
>>
>
>Cocoon's wrapper of environment contains HttpEnvironment if you are running
>in a servlet environment. If you run your code in a command line then you
>will get null. Cocoon's context wrapper should be used to avoid problems in
>different environments.
>
>If you don't need Http specific features then there is no need to use it.
>
>Regards,
>    Konstantin
>
Hi Konstantin!
For manipulation cocoon Enviroment attribut's within action (for 
manipulation sitemap params :) ) I need cocoon's ServletContext
(like 'application' object in JSP)
It's specific features?

Yury.



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message