cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans ...@domek.be>
Subject Re: Sub-sitemap static initialization
Date Tue, 02 Mar 2004 09:03:43 GMT
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:news@sea.gmane.org] De la part de Jorg Heymans
>>Envoyé : mardi 2 mars 2004 08:47
>>À : users@cocoon.apache.org
>>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: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message