cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Date Wed, 15 Nov 2000 12:03:24 GMT
"Marco Spinetti" <> wrote:
>I have a complex question according to me enough: in the Servlet exists the 
>Init function in which a person can insert some functions  which initialize 
>dates Membership once  only. How can I do that in Cocoon?
>How I can insert some inizialisment of elements ( to example a Hashtable ) 
>that must be executed an only time? Exists somebody which knows how I can  
>do it? Thanks many for the answer.

It's easy. I'll add this to the FAQ since it's asked a lot.

Just put this outside your page root element, but inside your xsp:page 

  // declare any "permanent" variables here, e.g.
  Collection myDates;

    myDates = // initialize my dates here, this is executed only once

Get Your Private, Free E-mail from MSN Hotmail at

Share information about yourself, create your own public profile at

View raw message