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 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] 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:
<map:match pattern="blah/**"> <map:act type="initscript"> <map:mount src="sitemap" uri-prefix="blah" /> </map:act> </map:match>
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 something in the action that knows it has been run once.
The initscript would execute the script only once.
Hope that helps, Unico
Jean-Luc Mathieu wrote:
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 advance.
Jean-Luc
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
