Re: Recuperation de plusieurs fichiers XMLs pour mettre dans un seul XML

2005-10-25 Thread Jean-Baptiste Quenot
* [EMAIL PROTECTED]: map:pipeline type=caching map:parameter name=expires value=access plus 1 hours/ map:match pattern=Source/*/Etudiant/Pole/*/*.xml map:generate src=http://{1}/ThES_{2}.nsf/viewXML_et/{3}/ map:serialize type=xml/ /map:match /map:pipeline Bonjour,

Re: Recuperation de plusieurs fichiers XMLs pour mettre dans un seul XML

2005-10-25 Thread e . francisco
Bonjour, Une petite correction : map:components map:pipes default=caching map:pipe name=expires-caching-hourly src=org.apache.cocoon.components.pipeline.ExpiresCachingProcessingPipeline parameter name=cache-expires value=3600 / /map:pipe /map:pipes /map:components

suppression déclaration DTD

2005-10-25 Thread Berengere.Genin
Bonjour, je ne m'y prends sûrement pas très bien...mais je ne sais plus comment faire! Voilà, après avoir uploadé un fichier XML, je voudrais supprimer la déclaration de DOCTYPE, car la DTD fournie est fausse... Pour cela, j'ai utilisé une classe java nommée DoctypeChanger

Re: lenya probleme chemin d'acces fichiers

2005-10-25 Thread Edith Chevrier
thomas desvenain wrote: bonjour, j'ai installé lenya sous windows, et une fois connecté, quoi que j'entreprenne, je reçois un message d'erreur du type suivant : file:\E:\cygwin\usr\local\apache-lenya-1.2.4\build\lenya\webapp\lenya\pubs\default\content\authoring\123456\index_en.xml (Syntaxe du

Re: Question sur le block spring-app

2005-10-25 Thread Sylvain Wallez
Laurent Perez wrote: C'est du design en direct et je ne l'ai pas testé, mais ça devrait faire l'affaire ! Ok, j'ai un peu de mal à suivre :) .. tu voulais dire quelque chose comme (dans du flow) : function giveResolver(){ var res =

Re: Recuperation de plusieurs fichiers XMLs pour mettre dans un seul XML

2005-10-25 Thread Jean-Baptiste Quenot
* [EMAIL PROTECTED]: Mais je dois avouer que je suis perdu au niveau des utilisations du chache de cocoon, et j'ai du mal avoir la différence entre les systèmes de cache. :-( En fait l'approche que tu utilisais ne faisait que positionner un en-tête « Expires » dans la réponse HTTP, ce

Re: Question sur le block spring-app

2005-10-25 Thread Sylvain Wallez
Laurent Perez wrote: Je proposais une approche un peu plus compliquée, mais qui fonctionne en dehors du flowscript. Effectivement, si c'est seulement dans le cadre du flowscript, cette approche est bonne aussi (et plus simple). Disons que si je pouvais eviter de me servir du flow, ça

Re: suppression déclaration DTD

2005-10-25 Thread Sylvain Wallez
[EMAIL PROTECTED] wrote: Merci de votre réponse. J'avais bien ajouté packages org.apache.cocoon.util; en tête de mon fichier DOCTYPEChangerStream.java, car celui-ci se situe dans l'arborescence suivante: /produits/cocoon-2.1.3/src/java/org/apache/cocoon/util/ Je viens par contre de déclarer

RE: suppression déclaration DTD

2005-10-25 Thread Berengere.Genin
Oui, oui, c'est bien ce que j'ai fait. Je te remercie. Bérengère -Message d'origine- De : Jean-Christophe Kermagoret [mailto:[EMAIL PROTECTED] Envoyé : Tuesday, October 25, 2005 17:04 À : users-fr@cocoon.apache.org Objet : Re: suppression déclaration DTD Bonjour, Tu as bien ajouté le

Probleme XSP windows vs linux

2005-10-25 Thread Bruno Chatel
Bonjour, Je travaille sur une application basé sur la distribution eXist et intégrant Cocoon. (eXist version CVS 18/10/2005, intégrant cocoon 2.1.7, Jetty). L'application fonctionne correctement sous Windows (J2SE 1.4.2). Cependant, en copiant directement la distribution sous Linux (J2SE 1.4.2

Re: How to send parameters to a URL via http?

2005-10-25 Thread Geert Josten
Hi Brian, Have you copied the flowscript code literally? The variable uri is not defined. Replace it by a string literal or pass a uri parameter to the function from the sitemap.. HTH, Geert Brian Burridge wrote: I've added your code and I keep getting an error:

Re: callback for continuation timeout?

2005-10-25 Thread Torsten Curdt
I have some processing invoked from flow that's not OK to just abandon if the user abandons their session. In particular, this processing logic reserves some resources in the database. BAD BAD BAD!! Don't!! A continuation should not even keep a component reference across a suspend!

Re: How to send parameters to a URL via http?

2005-10-25 Thread Torsten Curdt
On 25.10.2005, at 09:13, Geert Josten wrote: Hi Brian, Have you copied the flowscript code literally? The variable uri is not defined. Replace it by a string literal or pass a uri parameter to the function from the sitemap.. HTH, Geert Brian Burridge wrote: I've added your code

Re: How to send parameters to a URL via http?

2005-10-25 Thread Geert Josten
You cannot use this action to simply pass all request parameters to an external http request, especially if you don't know the names of the parameters... :-( Torsten Curdt wrote: On 25.10.2005, at 09:13, Geert Josten wrote: Hi Brian, Have you copied the flowscript code literally? The

Re: How to send parameters to a URL via http?

2005-10-25 Thread Torsten Curdt
On 25.10.2005, at 09:35, Geert Josten wrote: You cannot use this action to simply pass all request parameters to an external http request, especially if you don't know the names of the parameters... You can ...use {requestQuery} cheers -- Torsten PGP.sig Description: This is a

WinXP SP2 + JDK 1.5 + Cocoon 2.1.7 = no war when build!!!

2005-10-25 Thread Omar Adobati
Good Morning to everyone here, I'm really new to cocoon but I want to know how to use it 'cause it seems to be very useful.. but I can't start to make my own test. Here is the problem: I can find the cocoon.war to copy into the tomcat/webapps folder... I'm actually running a Linux box, Tomcat

Re: How to send parameters to a URL via http?

2005-10-25 Thread Geert Josten
Are you sure that this works with POSTed request parameters as well? Cheers! Torsten Curdt wrote: On 25.10.2005, at 09:35, Geert Josten wrote: You cannot use this action to simply pass all request parameters to an external http request, especially if you don't know the names of the

Re: WinXP SP2 + JDK 1.5 + Cocoon 2.1.7 = no war when build!!!

2005-10-25 Thread Geert Josten
Have you tried 'build war'? :-) Omar Adobati wrote: Good Morning to everyone here, I'm really new to cocoon but I want to know how to use it 'cause it seems to be very useful.. but I can't start to make my own test. Here is the problem: I can find the cocoon.war to copy into the

Multiple forms per page

2005-10-25 Thread werner
Hi, I know it is not possible to have multiple forms on one page using cforms. Is there some kind of workaround? I would like to put a search-field on every page of a website. The website contains also a lot of other cforms. So I would like to put a form with a searchfield (does not need to be a

Re: WinXP SP2 + JDK 1.5 + Cocoon 2.1.7 = no war when build!!!

2005-10-25 Thread Omar Adobati
Great, your solution works good... I fell myself so stupid... it was so easy! On 10/25/05, Geert Josten [EMAIL PROTECTED] wrote: Have you tried 'build war'? :-) Omar Adobati wrote: Good Morning to everyone here, I'm really new to cocoon but I want to know how to use it 'cause it

Re: Multiple forms per page

2005-10-25 Thread Geert Josten
I'm not that well into CForms, but I don't think it will be a (large) problem to add a non-cform form to every page and have it point to a totally different url than the cform... Might result in dangling continuations, but these will time-out eventually. Could also add it to the cform itself,

Re: How to send parameters to a URL via http?

2005-10-25 Thread Torsten Curdt
Are you sure that this works with POSTed request parameters as well? Did not see you were asking for POSTed parameters. It uses request.getQueryString() so probably not ...but should be very easy to implement. Feel free to submit a patch :) cheers -- Torsten PGP.sig Description: This is a

Re: How to send parameters to a URL via http?

2005-10-25 Thread Geert Josten
Did not see you were asking for POSTed parameters. I wasn't the original posted. Look back at the first message in the thread. Somewhere yesterday I believe.. ;-) Feel free to submit a patch :) Hmmm, was afraid of that... Someone else? (no time) Brian, meantime, the flowscript

ConcurrentModificationException during auth-logout

2005-10-25 Thread Fabrizio Sitzia
Hello I'm using Cocoon's (2.1.7 flavour) authentication framework in my webapps. The webapps are heavily dynamic: Web requests are dispatched to the flow controller which - depending on the user's permissions - retrieves the required data from the database (using Hibernate), then sets the

Re: Multiple forms per page

2005-10-25 Thread Sylvain Wallez
werner wrote: Hi, I know it is not possible to have multiple forms on one page using cforms. Is there some kind of workaround? I would like to put a search-field on every page of a website. The website contains also a lot of other cforms. So I would like to put a form with a searchfield (does

Re: How to send parameters to a URL via http?

2005-10-25 Thread Torsten Curdt
Did not see you were asking for POSTed parameters. I wasn't the original posted. Look back at the first message in the thread. Somewhere yesterday I believe.. Sorry, deleted the rest of the thread Hmmm, was afraid of that... Someone else? (no time) Hehe ...same here Brian, meantime,

Re: How to send parameters to a URL via http?

2005-10-25 Thread Zbigniew Bomert OP
Brian Burridge wrote: Problem is, I want to send all requests to this url, with any and all request params. I won't know what they are in advance to hard code them in the sitemap. Is there a way to get the xml from the RequestGenerator and send that as a param? map:generate

Re: How to send parameters to a URL via http?

2005-10-25 Thread Brian Burridge
Yes I understood that. Here is the flow I am using: function post2requestUri{ var queryString = ; for (var i in cocoon.getParameterNames){ queryString += i + = + cocoon.request.getParameter(i) + ; } cocoon.sendPage(http://localhost:8080/girscom/TestCocoon.jsp?+queryString) ; } BrianOn

Re: Multiple forms per page

2005-10-25 Thread werner
Am Dienstag, den 25.10.2005, 13:57 +0200 schrieb Sylvain Wallez: werner wrote: Hi, I know it is not possible to have multiple forms on one page using cforms. Is there some kind of workaround? I would like to put a search-field on every page of a website. The website contains also a lot

Re: Increasing Cocoon Portal speed at stat-up

2005-10-25 Thread Ralph Goers
Angelo Immediata wrote: Hi. My site is a service oriented portal; i have several application developed by using cocoon and integrated under the cocoon-portal block. Every application is a page (a named-item in the portal-user-anonymous.xml). Moreover i have a double navigator. I attach to

Problem with xercesImpl.jar in XALAN 2.7.0

2005-10-25 Thread Andrew Le Quesne
Hello, When I tried to upgrade to xalan 2.7.0 I am getting a NoSuchMethodError for org.apache.xerces.dom.NodeImpl.setUserData() when I try to access a forms page in my cocoon webapp. I have examined the jar and that method does seem to be there with the right signature. I am also fairly sure

Re: Problem with xercesImpl.jar in XALAN 2.7.0

2005-10-25 Thread Jean-Baptiste Quenot
* Andrew Le Quesne: When I tried to upgrade to xalan 2.7.0 I am getting a NoSuchMethodError for org.apache.xerces.dom.NodeImpl.setUserData() when I try to access a forms page in my cocoon webapp. What version of Cocoon are you using? AFAICT the dependency on Xerces has been removed from

Re: Multiple forms per page

2005-10-25 Thread Josep A. Frau
En/na Sylvain Wallez ha escrit: werner wrote: Hi, I know it is not possible to have multiple forms on one page using cforms. Is there some kind of workaround? I would like to put a search-field on every page of a website. The website contains also a lot of other cforms. So I would like to

RE: Problem with xercesImpl.jar in XALAN 2.7.0

2005-10-25 Thread Andrew Le Quesne
Hi, Thanks for your reply. I am running cocoon 2.1.6. At the cocoon get together there was a talk about Xalan 2.7.0 being more efficient. What does AFAICT mean? I am not sure what you are suggesting - that I should upgrade to the latest cocoon? Cordialement, Andrew -Original Message-

Re: callback for continuation timeout?

2005-10-25 Thread Torsten Curdt
...any other way of approaching that logic? What is it? The application is a ticketing system. We have to reserve the tickets in the database before we process the payment transaction so that we don't oversell our tickets. So, reserving the tickets is transactional (using

Re: callback for continuation timeout?

2005-10-25 Thread Ralph Goers
Mark Lundquist wrote: The application is a ticketing system. We have to reserve the tickets in the database before we process the payment transaction so that we don't oversell our tickets. So, reserving the tickets is transactional (using Spring+Hibernate+MySQL), while the payment

Simple Question on Repeaters

2005-10-25 Thread Craig Gulliver
Hi All, I would just like clarify the usage of repeaters. I want to use the initial-size attribute of the repeater definition. However I want to supply the value as form data and accessed as an _expression_. So my question, is it possible to use JXPath or JEXL expressions in the form

Re: Problem with xercesImpl.jar in XALAN 2.7.0

2005-10-25 Thread Joerg Heinicke
On 25.10.2005 17:05, Andrew Le Quesne wrote: Hi, Thanks for your reply. I am running cocoon 2.1.6. At the cocoon get together there was a talk about Xalan 2.7.0 being more efficient. What does AFAICT mean? I am not sure what As Far As I Can Think. you are suggesting - that I should upgrade

Breaking up the sitemap?

2005-10-25 Thread Brian Burridge
Is it possible to break up my sitemap.xmap and have some of the pipeline definitions in another sitemap file? Brian

Action and request attribute output

2005-10-25 Thread Bruyn Bill
Hi, all. Newbie question, and I'm probably doing something really stupid here, I know. But I've read everything I could find, and I still can't seem to make a request attribute available to other resources in the pipeline following the completion of my action. AFAIK, the following should work -

Re: Breaking up the sitemap?

2005-10-25 Thread Sylvain Wallez
Brian Burridge wrote: Is it possible to break up my sitemap.xmap and have some of the pipeline definitions in another sitemap file? Sure. Move what you want to the subsitemap and use map:mout src=subsitemap.xmap pass-through=true/ The pass-through attribute tells the sitemap engine to

Re: Breaking up the sitemap?

2005-10-25 Thread Brian Burridge
It worked! (but of course you knew it would) :) Thanks! BrianOn 10/25/05, Sylvain Wallez [EMAIL PROTECTED] wrote: Brian Burridge wrote: Is it possible to break up my sitemap.xmap and have some of the pipeline definitions in another sitemap file?Sure. Move what you want to the subsitemap

XML Validation with FileGenerator

2005-10-25 Thread Oliver Powell
I amusing XML from external providers and as part of the business rules I must validate it. I want the SAX parser in the FileGenerator to validate it againstits XSD. Ideally, I'd like to be able tolocalise XML validation to this particular pipeline and generator. For the most part I don't

Re: XML Validation with FileGenerator

2005-10-25 Thread Ralph Goers
Oliver Powell wrote: I am using XML from external providers and as part of the business rules I must validate it. I want the SAX parser in the FileGenerator to validate it against its XSD. Ideally, I'd like to be able to localise XML validation to this particular pipeline and generator.