End of Session in Sitemap

2006-06-12 Thread Yves Vindevogel
Hi, My session object contains the data of the database it has to connect to. When the session expires, I get an error when trying to connect. I could capture this in my code, but I would rather do it in my sitemap. Can I do this ? I would like to start a different generator based up the ses

RE: End of Session in Sitemap

2006-06-12 Thread Ard Schrijvers
Can't you use a map:selector to test wether the session is empty? Regards Ard > > Hi, > > My session object contains the data of the database it has to connect > to. When the session expires, I get an error when trying to connect. > I could capture this in my code, but I would rather do it i

Re: End of Session in Sitemap

2006-06-12 Thread Yves Vindevogel
Don't know, that's what I was asking (kind of) Ard Schrijvers wrote: Can't you use a map:selector to test wether the session is empty? Regards Ard Hi, My session object contains the data of the database it has to connect to. When the session expires, I get an error when trying to conne

RE: End of Session in Sitemap

2006-06-12 Thread Ard Schrijvers
in your map:components in map:selectors define: in your sitemap, do something like: etc etc Hope this helps... Regards Ard > > Don't know, that's what I was asking (kind of) >

Re: End of Session in Sitemap

2006-06-12 Thread Yves Vindevogel
Ok, tnx I'm gonna try to do this. Ard Schrijvers wrote: in your map:components in map:selectors define: src="org.apache.cocoon.selection.SimpleSelector"/> in your sitemap, do something like:

Re: End of Session in Sitemap

2006-06-12 Thread Yves Vindevogel
This is my code, eventually, which is what you've written down basically. Thank you value="ended{session-attr:dbase}"/> typ