cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <>
Subject RE: Storing object in context with flow
Date Mon, 05 Jan 2004 11:00:44 GMT

From: Upayavira []

> I have an object that is used by all pages to present static data to 
> pages using JXtemplate, so
> cocoon.sendPageAndWait("page", {"static", 
> cocoon.context.getAttribute("StaticObject")});
> How can I get an object into the context, once, at server startup, 
> without subclassing CocoonServlet?

you can register a listener in web.xml that does what you need. It is
very similar to a session listener but works on the application level.


View raw message