RE: Mounting Sub-Sitemap from outside cocoon-dir...

2003-02-25 Thread Laurent Comte
Some hints : 1/ As written in the doc, use : src=file:///x:/some/folder/ 2/ On windows, use / in the path, not \ (yes, it SHOULD be the opposite ...) As I wrote in a previous post, using subsitemaps that are not inside the main sitemap seems to run into reloading problems, when updates are made

RE: Cocoon as a DataMapper framework

2003-02-24 Thread Laurent Comte
Hi Luca, I'm writing a web-application (servlets + POJO) that use Cocoon for presentation, so my application is Controller+Model, and Cocoon is View (plus Controller if I need), MVC model speaking. My application generate data (response) in XML, and then I forward the original request using

RE: How can I handle session expiration event

2003-02-24 Thread Laurent Comte
Hi (bonjour)Vincent, you can certainly look at HttpSessionListener, as Cocoon is a java web-application after all. Regards.Laurent. -Message d'origine-De: MAHE Vincent FTRD/DIH/REN [mailto:[EMAIL PROTECTED]Envoyé: lundi 24 février 2003 15:08À: [EMAIL PROTECTED]Objet:

Is this question too simple to be answered ?

2003-02-20 Thread Laurent Comte
Hi, is this question too simple to be answered ? -Message d'origine- De : Laurent Comte [mailto:[EMAIL PROTECTED]] Envoy : mercredi 19 fvrier 2003 13:25 A : [EMAIL PROTECTED] Objet : Simple pb with subsitemap mount Hi, I just try to create subsitemap as written in docs. I have

RE: Is this question too simple to be answered ?

2003-02-20 Thread Laurent Comte
Hi, and thanks for your reply :) quote Try relative location for your files. /quote The problem is that my subsitemap is not located in a subfolder under the main sitemap. So I must specify as src something like ../../../Apache/htdocs/myFolder/itsHere. Humf! == BUT, finally I found 2

RE: Is this question too simple to be answered ?

2003-02-20 Thread Laurent Comte
Yes, I read it already. So I have check-reload="yes"and reload-method="synchron", BUT the problem is : If I update the main sitemap file without updating the subsitemap file, I obtain a NullPointerException during parsing of the subsitemap file. If I make a fake update in the subsitemap

RE: XPath problems in Cocoon?

2003-02-20 Thread Laurent Comte
Perhaps a trail : You use map:generate src="" type="html"/, so perhaps after the generator process, your html page is not EXACTLY the same as your static html file, and your Xpath expression fails. I think you cantrace Cocoon outputs during pipeline process as described in the

Sitemap parameters lifetime

2003-02-20 Thread Laurent Comte
As described at http://xml.apache.org/cocoon/userdocs/concepts/actions.html, you can set sitemap param as : sitemapParams.put("world", "hello"); I think it must be said what is the lifetime of the param "world". Because after the execution of the pipeline where this parameter is setted

RE: Sitemap parameters lifetime

2003-02-20 Thread Laurent Comte
It seems I must post the same question twice to have an answer :) Regards.Laurent. -Message d'origine-De: Laurent Comte [mailto:[EMAIL PROTECTED]]Envoyé: jeudi 20 février 2003 13:09À: [EMAIL PROTECTED]Objet: Sitemap parameters lifetime As described at http

Simple pb with subsitemap mount

2003-02-19 Thread Laurent Comte
Hi, I just try to create subsitemap as written in docs. I have : [sitemap.xmap] ... map:pipelines !-- very simple test -- map:pipeline map:match pattern=view/** map:mount uri-prefix=view check-reload=true src=file:///D:\work\web.xmap / /map:match

RE: Using a RequestAttributeSelector

2003-02-17 Thread Laurent Comte
let me quote a comment from the virgin cocoon sitemap: quote Since this is important, let me repeat it: Selectors are executed during pipeline setup. /quote the same goes for matchers and actions. what this means is that the RequestAttributeSelector is done before your generation step in

RE: Using a servlet as source for a generator

2003-02-14 Thread Laurent Comte
I think it doesn't fit your servlet mapping. Try map:generate uri=myServlet/ It doesn't work ... It couldn't setup pipeline with an org.apache.cocoon.ProcessingException: Could not setup pipeline.: org.xml.sax.SAXException: Invalid System ID If this doesn't work either and you are using 2.1

RE: Using a servlet as source for a generator

2003-02-14 Thread Laurent Comte
Sorry, it should be map:generate src=myServlet/ I've tried also, but in this case, it looks the ressource on the file system (FileNotFoundException) ... Laurent - Please check that your question has not already been

RE: Using a servlet as source for a generator

2003-02-14 Thread Laurent Comte
OK, one last guess: map:generate src=/myServlet/ I tried for 2 hours all sorts of things :(( ... The only one working is with the full url ... I think that for Cocoon: 1/ there's some confusion between src and uri attribute for the generator 2/ there's some confusion on how to know if uri is

RE: Using a servlet as source for a generator

2003-02-14 Thread Laurent Comte
It seems that it check if uri begin with http. That is what I thought as well. But http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet seems to indicate otherwise. Yes, but the author of this article told me that he didn't test it ! :-/ He will going to change his article ... Does it

Using a RequestAttributeSelector

2003-02-14 Thread Laurent Comte
I would like to : 1/ use a servlet (servDoSomething) as a generator to generate some XML data. 2/ depending of what happened in step 1 (everything was fine or some error happened), I would like to set a nextpage attribute to say where should we go next :

Using a servlet as source for a generator

2003-02-13 Thread Laurent Comte
Hi all, i've read the article at http://wiki.cocoondev.org/Wiki.jsp?page=IntegrateAServlet and i have a question ... I tried to use a servlet as a source for a generator and it works when i set the full url of the servlet (like http://localhost:8080/myApp/myServlet;). Unfortunately, when i