Try: Constants.java:
/** *The name of a <code>Context</code> object in the so called objectModel <code>Map</code>. * This constant is also defined in the org.apache.cocoon.environment.ObjectModelHelper class. * * FIXME(GP): Shouldn't this definition here be removed? */ String CONTEXT_OBJECT = "context"; You can then use Constants.CONTEXT_ENVIRONMENT_CONTEXT on the returned Context to get the Environment context. /LS > From: Thorsten Mauch [mailto:[EMAIL PROTECTED]] > Sent: den 22 februari 2002 13:41 > To: '[EMAIL PROTECTED]' > Subject: CONTEXT_ENVIRONMENT_CONTEXT can be null ? > > > Hi > I try to look up the context but I receive null > The code in my actions simply looks like: > Context context = > (Context)objectmodel.get(Constants.CONTEXT_ENVIRONMENT_CONTEXT); > if(context == null) > System.out.println("no context"); > > I run cocoon with tomcat, so I expect a Environment to exist ? > or does I understand the context object wrong ? > > Thx Thorsten > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, email: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]