RE: Sub-sitemap static initialization

2004-03-02 Thread Jean-Luc Mathieu
Jorg Heymans > Envoyé : mardi 2 mars 2004 11:55 > À : [EMAIL PROTECTED] > Objet : Re: Sub-sitemap static initialization > > > > Jean-Luc Mathieu wrote: > > > Yes, i had already thought about it, but i can't access to Cocoon > environment - > > i wanted t

Re: Sub-sitemap static initialization

2004-03-02 Thread Jorg Heymans
PROTECTED] Objet : Re: Sub-sitemap static initialization how about using a static initializer block in the action ? ie class mybla extends action static{ //your stuff gets executed only once when the class is loaded } You can then have different actions for different subsitemaps. it's a bit

RE: Sub-sitemap static initialization

2004-03-02 Thread Jean-Luc Mathieu
valon framework I think ... > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Jorg Heymans > Envoyé : mardi 2 mars 2004 11:00 > À : [EMAIL PROTECTED] > Objet : Re: Sub-sitemap static initialization > > how about using a static initialize

Re: Sub-sitemap static initialization

2004-03-02 Thread Jorg Heymans
AIL PROTECTED] Objet : Re: Sub-sitemap static initialization Can you explain your use-case a bit more? Remember TUIMTOWTDIIC - there usually is more than one way to do it in Cocoon :) Jean-Luc Mathieu wrote: Hmm, I tested it, and you're right. Finally, it's not completely wh

RE: Sub-sitemap static initialization

2004-03-02 Thread Jean-Luc Mathieu
10:04 > À : [EMAIL PROTECTED] > Objet : Re: Sub-sitemap static initialization > > Can you explain your use-case a bit more? Remember TUIMTOWTDIIC > - there usually is more than one way to do it in Cocoon :) > Jean-Luc Mathieu wrote: > > > Hmm, I tested it, and you're

Re: Sub-sitemap static initialization

2004-03-02 Thread Jorg Heymans
: news [mailto:[EMAIL PROTECTED] De la part de Jorg Heymans Envoyé : mardi 2 mars 2004 08:47 À : [EMAIL PROTECTED] Objet : Re: Sub-sitemap static initialization One thing I can think of that you could do is to wrap your sitemap mount with an action. The mounting sitemap: How does the

RE: Sub-sitemap static initialization

2004-03-02 Thread Jean-Luc Mathieu
Hmm, I tested it, and you're right. Finally, it's not completely what I wanted to do. Any other ideas ? > -Message d'origine- > De : news [mailto:[EMAIL PROTECTED] De la part de Jorg Heymans > Envoyé : mardi 2 mars 2004 08:47 > À : [EMAIL PROTECTED] >

Re: Sub-sitemap static initialization

2004-03-01 Thread Jorg Heymans
One thing I can think of that you could do is to wrap your sitemap mount with an action. The mounting sitemap: How does the above guarantee that the action is only run once? Subsequent requests to blah/whatever from different users will run the action again IMO, unless there is some

RE: Sub-sitemap static initialization

2004-03-01 Thread Jean-Luc Mathieu
This solution suits my needs. Thanks a lot! :-) > -Message d'origine- > De : Unico Hommes [mailto:[EMAIL PROTECTED] > Envoyé : lundi 1 mars 2004 21:45 > À : [EMAIL PROTECTED] > Objet : Re: Sub-sitemap static initialization > > > I'm not sure I un

Re: Sub-sitemap static initialization

2004-03-01 Thread Unico Hommes
I'm not sure I understand what you are trying to do. At least you won't know what sitemap is going to process your request in the CocoonServlet. One thing I can think of that you could do is to wrap your sitemap mount with an action. The mounting sitemap: The initscript would execu

Sub-sitemap static initialization

2004-03-01 Thread Jean-Luc Mathieu
Hello !   I have to launch an init script (a Java piece of program) at Cocoon startup (more precisely on the time the first user to connect requests a specific sub-sitemap). Is it a simple way to do this using for example sitemaps only, or I have to override CocoonServlet ? Thank you in