Cocoon 2.1.3 - Build fails on Win98
Hello, building Cocoon-2.1.3 on a Windows 98 machine doesn't seem to work. The script immediatly stops after echo-ing the JAVA_HOME directory and this strange OFF message? When I use my own Ant 1.5.1 version the build seems to run. Any ideas? Do I need to use the Ant version included in Cocoon to do a proper build? -- Danny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom jars, where to put them?
Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
?xml-logicsheet href=url? - how is it represented in JDOM ??
Hi, I need to build JDOM of a XSP page. How the ?xml-logicsheet ? is represented in DOM ?? How to add it to DOM? Regards, Marcin Okraszewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building a Cocoon-based project as a block
On 17 Dec 2003, at 19:45, Bruce Robertson wrote: I'm in the process of upgrading a Cocoon-based project[1] from 2.0.x to 2.1.x. Until now, my project's build worked by building cocoon, copying over the necessary files from cocoon to my build directory, building my stuff, and making a war file. In 2.1.x I believe it makes better sense to implement my project as a cocoon block. That is, it would build by copying the necessary directories over to src/blocks, use xslt to append elements to gump.xml and jars.xml, then hand the job of building off to cocoon's build.xml. Having tried this out, I can say that the modularity is great: I can get rid of two jar files that I used to keep in CVS. In fact, it seems to make so much sense that I would have thought there'd be a HOWTO or something describing this as the preferred means of making a cocoon-based project. For the life of me, though, I can't find any such documentation. Can members of the list point me in the right direction or, if nobody's taking this approach, explain to my why it is silly? A slightly different approach is outlined here : http://wiki.cocoondev.org/Wiki.jsp?page=ProjectBuilding HTH regards Jeremy smime.p7s Description: S/MIME cryptographic signature
Re: users Digest 17 Dec 2003 21:47:17 -0000 Issue 2422
James, I would suggest using the cinclude transformer after your XSLT. Simply have your XSLT insert the ci:include elements for the documents you wish to include, and then add map:transform type=cinclude/ after your transformer. XSLT has the document() function, but that's not recommended. -James Regards, Tony Tony, Thanks for the suggestion and I'll check it out. What I've ended up doing temporarily is: xsl:copy-of select=document('../../html/header.xml')/ Why isn't this recommended? It seems to fail absolutely fine with no side effects if header.xml doesn't exist or is not well-formed. (i.e. it just isn't included). Is there something bad about it I'm not seeing? I'm assuming using ci:include I'll have to do something like: ci:include xmlns:ci=http://apache.org/cocoon/include/1.0; src=../../html/header.xml/ (or maybe context://header.xml) And include map:transform type=cinclude/ before or after the initial transformation. -James --- Dr James Cummings, Oxford Text Archive, [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Woody] Help needed doing date validation
How can I validate a date within the form definition file? I need to check if the date is given in the right format (dd.MM.) and if the date is valid. I have something like this: source: v:Geburtsdatum1973-11-16/v:Geburtsdatum definition: wd:field id=vn_geburtsdatum required=true wd:labelGeburtsdatum/wd:label wd:datatype base=date wd:convertor wd:patterns wd:patterndd.MM./wd:pattern /wd:patterns /wd:convertor /wd:datatype /wd:field binding: wb:value id=vn_geburtsdatum path=v:Geburtsdatum wd:convertor datatype=date type=formatting wd:patterns wd:pattern-MM-dd/wd:pattern /wd:patterns /wd:convertor /wb:value Thanks for your help! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Woody Validation] general.field-required - how to change it?
Hi, add the i18n transformer to your pipe after the woody transformer and don't forget to add the transformer deklaration to your sitemap components. At last you have to create a xml file with the error messages. Look at the woody examples under samples/woody/. EXAMPLE sitemap: map:components map:transformer logger=sitemap.transformer.i18n name=i18n pool-grow=5 pool-min=50 pool-max=150 src=org.apache.cocoon.transformation.I18nTransformer catalogues default=woody catalogue id=woody name=[messages file name] location=[path to your message file]/ /catalogues cache-at-startuptrue/cache-at-startup /map:transformer /map:components map:match pattern=form-display map:generate type=file src=resources/forms/templates/test.template/ map:transform type=woody/ map:transform type=i18n map:parameter name=locale value=en-US/ /map:transform map:transform type=xsltc src=stylesheets/woody.xsl/ map:serialize type=html/ /map:match xml file with messages: ?xml version=1.0 encoding=ISO-8859-1? catalogue message key=general.field-requiredThis field is required./message /catalogue Greetings :-) Markus -Ursprungliche Nachricht- Von: Marcin Okraszewski Gesendet: Mittwoch, 17. Dezember 2003 22:28 An: [EMAIL PROTECTED] Betreff: [Woody Validation] general.field-required - how to change it? Hi, How to change default error message when a field is required (general.field-required)? Regards, Marcin Okraszewski - 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]
Re: WML Compiler / WMLC Serializer available?
Sebastian Klamar wrote: I need a WMLC serializer. I found an old posting on cocoon-users, dated 2001-04-09 [1]. In this mail the poster offered to include his WMLC Serializer in the Cocoon distribution. Unfortunately the link he provided doesn't exist any longer and the serializer wasn't included in Cocoon :-( Anyone with a ready wmlc component? IFAIK, you don't need a special serializer. There is a WML serializer already in the default root sitemap. Use that. Any compilation that is done is done by the WAP user's WAP gateway, not by your web server. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Woody] How to obtain submitId from a repeater.
Marcin Okraszewski wrote: Or you can do something like, from flow: form.getSubmitWidget().getParent() Which returns the RepeaterRow that was submitted. You can then do .getWidget(xxx).getValue() to get the value of a particular widget on that row. Regards, Upayavira Well, probably it isn't the best solution, but finally did it like this (maybe it will help some future reader): 1. In a flow I define global variable that will hold an index of pressed button, let say index (probably it would also work with a pseudo-field defined in model) var index; function myform(form) { ... } 2. I define in model an on-action handler, which sets the global variable as fallows: wd:repeater id=myrepeater wd:widgets ... !-- fields definition -- wd:submit id=row-submit action-command=row-submit wd:labelsubmit row/wd:label wd:on-action javascript var row = event.sourceWidget.parent; index = row.parent.indexOf(row); /javascript /wd:on-action /wd:submit /wd:widgets /wd:repeater 3. If submit is pressed, first the form is validated, than the on-action is preformed and finally a flow script continues execution. Now I can simply get index, just like that: if (form.submitId == row-submit) print(submit at row: , index); As simple as that :-) I know, it isn't very elegant, but it works. Maybe someone has better solution? Regards, Marcin Okraszewski Hi, Is it possible to obtain which submit widget was pressed in a repeater? If I use form.submitId, I obtain only id of widget, but I don't know from which row the submit comes from. Regards, Marcin Okraszewski - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Custom jars, where to put them?
Marcin Okraszewski wrote: Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. You should put your jars into WEB-INF/lib. If you're using Tomcat, stick 'reloadable=true' attribute onto the Context node for your webapp in $tomcat/conf/server.xml, and you should see Tomcat reload your jar (or classes in WEB-INF/classes) a few seconds after you change them. Regards, Upayavira I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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]
Re: Cocoon 2.1.3 - Build fails on Win98
Danny Bols wrote: Hello, building Cocoon-2.1.3 on a Windows 98 machine doesn't seem to work. The script immediatly stops after echo-ing the JAVA_HOME directory and this strange OFF message? When I use my own Ant 1.5.1 version the build seems to run. Any ideas? Do I need to use the Ant version included in Cocoon to do a proper build? I think you'll find that none of the Cocoon developers are using Win98, and can thus not debug the build on that OS. If you can get it to work with 1.5.1, then that's great, go ahead. If you want, you can always try to find out what the difference is, and try to supply us with a patch to make the build process work with the included Ant. Regards, Upayavira -- Danny - 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]
RE: Custom jars, where to put them?
Hello, Thanks for sticking with me. No, it was just a misspell here. In fact, if I click on the tomcat manager link in the standard index.jsp I get the same message: /manager/html not found. Could it be possible that it is not allowed for one user to have both admin and manager roles? Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 09:25 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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]
Re: Custom jars, where to put them?
[EMAIL PROTECTED] wrote: Hello, Thanks for sticking with me. No, it was just a misspell here. In fact, if I click on the tomcat manager link in the standard index.jsp I get the same message: /manager/html not found. Could it be possible that it is not allowed for one user to have both admin and manager roles? To get the manager working you need to have a /manager/ context configured in your server.xml, and you need to have added a username/password to your tomcat-users.xml. Regards, Upayavira Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 09:25 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Error while starting tomcat + Cocoon 2.1.3
Hello, Every time I start tomcat with cocoon 2.1.3 I get lots of the following error, but it seems cocoon is working fine: no protocol: com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when processing EOF. Input to RDF parser ended prematurely. This is often related to an XML parser abort. Encountered EOF Was expecting one of: XML ELEMENT CONTENT start element rdf:RDF start element rdf:Description general start element tag at com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser.java:2208 ) at com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.java:2095) at com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325) at com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308) at com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:256) at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:173) at com.hp.hpl.deli.VocabularyConfig.schemaProcess(VocabularyConfig.java:250) at com.hp.hpl.deli.VocabularyConfig.init(VocabularyConfig.java:105) at com.hp.hpl.deli.Vocabulary.init(Vocabulary.java:37) at com.hp.hpl.deli.Workspace$1$CreateWorkspace.init(Workspace.java:191) at com.hp.hpl.deli.Workspace.configure(Workspace.java:367) at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:148) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil .java:282) etc I built cocoon in its own directory and afterwards copied the content of the build directory to the tomcat webapps/cocoon directory. Does anyone know what to do/which file to fix? Bye, Helma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: [Woody] Binding problem for missing elements in source file
-Ursprungliche Nachricht- Von: Upayavira Gesendet: Mittwoch, 17. Dezember 2003 16:49 An: [EMAIL PROTECTED] Betreff: Re: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Hi all. I'm new to the Woody framework but till now it works fine for me. But I have one problem I don't know how to solve at best :-( I get the following exception when I submit the form: org.apache.cocoon.woody.binding.BindingException: Problem binding field vn_titel (parent = ) to xpath v:Titel (context xpath = /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Partner[1]/v:P er son[1]) org.apache.commons.jxpath.JXPathException: No value for xpath: v:Titel The field is defined in the form definition file and a binding is also defined in the woody binding file. But in one case there is no corresponding XML tag in my source file. In other case there is one. I have to create the element if it is missing. So how can I manage this situation at best? Who can point me to the right direction? Not sure if I'm right here, but I think you need 'lenient' jxpath within binding - this means that, if jxpath doesn't find a node, it ignores it, rather than causing an exception. But this is not exactly what I have to do. If there is no node in the source file I have to create this node before the binding saves it back to the source. How can I manage this at best? I have no experience in using the woody framework. When I set @readonly to true within the binding I get no exceptions because there is no saving process. But in fact I have to save it. I tried something around wb:insert-node/ but it didn't work :-( wb:delete-node/ does what I expected. Anyone there who can give me a hint? I really need this feature. Markus There has been discussion on the dev list about adding this over the last couple of days. I'm not sure if it is in CVS Cocoon yet, but I suspect it will be within a day or so. Regards, Upayavira Thanks for your help, Markus. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ?xml-logicsheet href=url? - how is it represented in JDOM ??
Sorry for bothering - it is org.jdom.ProcessingInstruction Hi, I need to build JDOM of a XSP page. How the ?xml-logicsheet ? is represented in DOM ?? How to add it to DOM? Regards, Marcin Okraszewski - 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]
RE: Custom jars, where to put them?
Yes, Marcin already gave the instructions and later I found them in an html file as well. I added a context for the manager to tomcat server.xml and added a line with username, password and manager role to the tomcat-users.xml (also added a role manager). Before I started fiddling around to get the manager app working I got a login dialog when I clicked on the link tomcat manager in index.jsp, but afterward the above modifications and a restart of tomcat I don't get the login dialog any more, but immediately a tomcat error page with '/manager/html/ not available'. Bye, Helma -Original Message- From: Upayavira [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 11:38 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? [EMAIL PROTECTED] wrote: Hello, Thanks for sticking with me. No, it was just a misspell here. In fact, if I click on the tomcat manager link in the standard index.jsp I get the same message: /manager/html not found. Could it be possible that it is not allowed for one user to have both admin and manager roles? To get the manager working you need to have a /manager/ context configured in your server.xml, and you need to have added a username/password to your tomcat-users.xml. Regards, Upayavira Bye, Helma -Original Message- From: Marcin Okraszewski [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 09:25 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? Hi, I did all you suggested, but something must be wrong. I use tomcat 4.1.29 and before adding users to the tomcat-users.xml file I got a login screen for both admin and manager. When I entered the username below and restarted tomcat I don't get the login screen, but simply the message that requested resource /manage/html is not available. I'm not sure if you misspelled the url only here or in browser too. It should be /manager/html not /manage/html Regards, Marcin Okraszewski - 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] - 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]
AW: WML Compiler / WMLC Serializer available?
-Ursprungliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Upayavira Gesendet: Donnerstag, 18. Dezember 2003 10:48 An: [EMAIL PROTECTED] Betreff: Re: WML Compiler / WMLC Serializer available? Sebastian Klamar wrote: I need a WMLC serializer. I found an old posting on cocoon-users, dated 2001-04-09 [1]. In this mail the poster offered to include his WMLC Serializer in the Cocoon distribution. Unfortunately the link he provided doesn't exist any longer and the serializer wasn't included in Cocoon :-( Anyone with a ready wmlc component? IFAIK, you don't need a special serializer. There is a WML serializer already in the default root sitemap. Use that. Any compilation that is done is done by the WAP user's WAP gateway, not by your web server. Regards, Upayavira that's right, you don't need a special serializer. but I think the compilation by the gateway is just what he wants to prevent. the need for speed ;-) shoudln't be too difficult to implement though. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Error while starting tomcat + Cocoon 2.1.3
dag helma ;-) if you don't need it, you may want to exclude the deli block from the build. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:02 An: [EMAIL PROTECTED] Betreff: Error while starting tomcat + Cocoon 2.1.3 Hello, Every time I start tomcat with cocoon 2.1.3 I get lots of the following error, but it seems cocoon is working fine: no protocol: com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when processing EOF. Input to RDF parser ended prematurely. This is often related to an XML parser abort. Encountered EOF Was expecting one of: XML ELEMENT CONTENT start element rdf:RDF start element rdf:Description general start element tag at com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser .java:2208 ) at com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.java:2095) at com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325) at com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308) at com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:256) at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:173) at com.hp.hpl.deli.VocabularyConfig.schemaProcess(VocabularyConfig.java:250) at com.hp.hpl.deli.VocabularyConfig.init(VocabularyConfig.java:105) at com.hp.hpl.deli.Vocabulary.init(Vocabulary.java:37) at com.hp.hpl.deli.Workspace$1$CreateWorkspace.init(Workspace.java:191) at com.hp.hpl.deli.Workspace.configure(Workspace.java:367) at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl.java:148) at org.apache.avalon.framework.container.ContainerUtil.initialize(Con tainerUtil .java:282) etc I built cocoon in its own directory and afterwards copied the content of the build directory to the tomcat webapps/cocoon directory. Does anyone know what to do/which file to fix? Bye, Helma - 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]
AW: Custom jars, where to put them?
dag helma, 'not available' most probably means the startup of the context failed due to the errors. have a look at tomcat's logs or start tomcat with 'catalina run'. the context's config is probably erroneous. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:17 An: [EMAIL PROTECTED] Betreff: RE: Custom jars, where to put them? Yes, Marcin already gave the instructions and later I found them in an html file as well. I added a context for the manager to tomcat server.xml and added a line with username, password and manager role to the tomcat-users.xml (also added a role manager). Before I started fiddling around to get the manager app working I got a login dialog when I clicked on the link tomcat manager in index.jsp, but afterward the above modifications and a restart of tomcat I don't get the login dialog any more, but immediately a tomcat error page with '/manager/html/ not available'. Bye, Helma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Error while starting tomcat + Cocoon 2.1.3
Dag Marco :-) Hmm, sounds a bit too easy, but pragmatic. On the other hand I'm thinking of playing with deli as well. I suppose I need the block if I want to check out the deli samples, right? Bye and thanks, Helma -Original Message- From: Marco Rolappe [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 12:57 To: [EMAIL PROTECTED] Subject: AW: Error while starting tomcat + Cocoon 2.1.3 dag helma ;-) if you don't need it, you may want to exclude the deli block from the build. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:02 An: [EMAIL PROTECTED] Betreff: Error while starting tomcat + Cocoon 2.1.3 Hello, Every time I start tomcat with cocoon 2.1.3 I get lots of the following error, but it seems cocoon is working fine: no protocol: com.hp.hpl.jena.rdf.arp.ParseException: {E201} Syntax error when processing EOF. Input to RDF parser ended prematurely. This is often related to an XML parser abort. Encountered EOF Was expecting one of: XML ELEMENT CONTENT start element rdf:RDF start element rdf:Description general start element tag at com.hp.hpl.jena.rdf.arp.RDFParser.generateParseException(RDFParser .java:2208 ) at com.hp.hpl.jena.rdf.arp.RDFParser.jj_consume_token(RDFParser.j ava:2095) at com.hp.hpl.jena.rdf.arp.RDFParser.root(RDFParser.java:1325) at com.hp.hpl.jena.rdf.arp.RDFParser.embeddedFile(RDFParser.java:1308) at com.hp.hpl.jena.rdf.arp.ARPFilter.parse(ARPFilter.java:293) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:227) at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:256) at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:173) at com.hp.hpl.deli.VocabularyConfig.schemaProcess(VocabularyConfi g.java:250) at com.hp.hpl.deli.VocabularyConfig.init(VocabularyConfig.java:105) at com.hp.hpl.deli.Vocabulary.init(Vocabulary.java:37) at com.hp.hpl.deli.Workspace$1$CreateWorkspace.init(Workspace.java:191) at com.hp.hpl.deli.Workspace.configure(Workspace.java:367) at org.apache.cocoon.components.deli.DeliImpl.initialize(DeliImpl .java:148) at org.apache.avalon.framework.container.ContainerUtil.initialize(Con tainerUtil .java:282) etc I built cocoon in its own directory and afterwards copied the content of the build directory to the tomcat webapps/cocoon directory. Does anyone know what to do/which file to fix? Bye, Helma - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
html-generate-serialize-problem
Hi helpers :-) I got the following problem: I want to generate a xhtml-site and serialize it after that: I tried both: map:match pattern=epozmacros map:generate src=documents/epozmacros.html/ map:serialize type=html/ /map:match map:match pattern=epozmacros map:generate type=html src=documents/epozmacros.html/ map:serialize type=html/ /map:match Nothing is working correctly.. I have a script type=text/javascript src=dom2_events.js/script in the xhtml-document after the serialization I get a script type=text/javascript src=dom2_events.js/ The / is not understand by the Browser and he is waiting for a closing tag. But shouldn't the html-serializer know about the closing-tag-differences between html and xml? Freddy pgp0.pgp Description: PGP signature
Re: html-generate-serialize-problem
Sorry, I fixed it myself... there was a Namespace for the html-tag .. after removing it, everything is working fine.. Was my fault Freddy pgp0.pgp Description: PGP signature
Python Script Generator
I am trying to use the ScriptGenerator with python on cocoon 2.1.3. Somehow, there is no sample available in the distribution and after hours of googling I still haven't found an example. Could someone points me to the right direction? Thanks Laurent
RE: [xsp-session-fw] NPE when use getxml with empty tag
Laurent Trillaud dijo: Yes, I know but in this case, I need a string. In fact the logicsheet is not safe enough because the java generated is ((DocumentFragment) blahblah).getFirstChild().getNodeValue(); Laurent I have the following problem with the solution you suggested. I use the getxml inside a xsp:expr: xsp:exprInteger.parseInt(xsp-session-fw:getxml context=authentication path=/authentication/data/loc_id as=string/)/xsp:expr This is translated to: (Integer.parseInt( node = ((DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, String.valueOf(authentication), String.valueOf(/authentication/data/loc_id.getFirstChild(); node != null ? node.getNodeValue() : )) In this sample this is a bad compiled code, because we cannot use inside a function Integer.parseInt 2 instructions: (DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, String.valueOf(authentication), String.valueOf(/authentication/data/loc_id.getFirstChild(); and node != null ? node.getNodeValue() : What we can do? Best Regards, Antonio Gallardo -Message d'origine- De : Antonio Gallardo [mailto:[EMAIL PROTECTED] Envoyé : mardi 16 décembre 2003 14:06 À : [EMAIL PROTECTED] Objet : Re: [xsp-session-fw] NPE when use getxml with empty tag Laurent Trillaud dijo: Hi From the portal engine, for example, when I use xsp-session-fw:getxml as=string context=authentication path=/authentication/data/title/ I got an NPE if this tag is empty. If I put something on it in the sunrise-user.xml from the portal sample, it's working fine. Any idea? Try: as=object More info @ http://wiki.cocoondev.org/Wiki.jsp?page=XspSessionFw Best Regards, Antonio Gallardo - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Error while starting tomcat + Cocoon 2.1.3
if you're thinking about playing with DELI then I hope for you that it's currently not broken. I don't know exactly anymore. but I think there were problems with DELI recently. you might want to check the mailing lists for it. yes, you need the block to check out the samples. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 13:07 An: [EMAIL PROTECTED] Betreff: RE: Error while starting tomcat + Cocoon 2.1.3 Dag Marco :-) Hmm, sounds a bit too easy, but pragmatic. On the other hand I'm thinking of playing with deli as well. I suppose I need the block if I want to check out the deli samples, right? Bye and thanks, Helma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting data of put-request
Hi helpers! I'm trying to get the data (a complete html-page) of a put-reqeust and save it to disk. But I don't get it :( I searched in the web for it and all I got so far is: map:match pattern=put-request map:generate type=request map:parameter name=generate-attributes value=true/ /map:generate map:transform src=stylesheets/sourcewrite.xsl/ map:transform type=write-source/ map:serialize type=xml/ /map:match But the file written by the write-source-transformer is not the data of the request. Only (for me) less importent information like parameters, headers etc.. Who can help me? Freddy pgp0.pgp Description: PGP signature
RE: Getting data of put-request
Depending on the version you are using but if its recent, say 2.1.3 then check out the davmap samples in the webdav block. They should get you going. Anyway, you need to use the StreamGenerator, not the RequestGenerator in your snipped below. Unico -Original Message- From: Frederic Gaus [mailto:[EMAIL PROTECTED] Sent: donderdag 18 december 2003 15:49 To: [EMAIL PROTECTED] Subject: Getting data of put-request Hi helpers! I'm trying to get the data (a complete html-page) of a put-reqeust and save it to disk. But I don't get it :( I searched in the web for it and all I got so far is: map:match pattern=put-request map:generate type=request map:parameter name=generate-attributes value=true/ /map:generate map:transform src=stylesheets/sourcewrite.xsl/ map:transform type=write-source/ map:serialize type=xml/ /map:match But the file written by the write-source-transformer is not the data of the request. Only (for me) less importent information like parameters, headers etc.. Who can help me? Freddy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Sorry for the blast...
but is there any way to get a daily digest for the mailing list? Chuck Williams [EMAIL PROTECTED] Why Wait? Move to EarthLink.
RE: Error while starting tomcat + Cocoon 2.1.3
Thanks, I'll wait a while before playing with deli. :-) How do I disable the block? Is it sufficient to remove the *deli*.jar from the lib directory? Bye, Helma -Original Message- From: Marco Rolappe [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 15:49 To: [EMAIL PROTECTED] Subject: AW: Error while starting tomcat + Cocoon 2.1.3 if you're thinking about playing with DELI then I hope for you that it's currently not broken. I don't know exactly anymore. but I think there were problems with DELI recently. you might want to check the mailing lists for it. yes, you need the block to check out the samples. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 13:07 An: [EMAIL PROTECTED] Betreff: RE: Error while starting tomcat + Cocoon 2.1.3 Dag Marco :-) Hmm, sounds a bit too easy, but pragmatic. On the other hand I'm thinking of playing with deli as well. I suppose I need the block if I want to check out the deli samples, right? Bye and thanks, Helma - 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]
Re: WML Compiler / WMLC Serializer available?
* Upayavira [2003-12-18 10:48 +0100] wrote: There is a WML serializer already in the default root sitemap. Use that. Any compilation that is done is done by the WAP user's WAP gateway, not by your web server. FYI, I need the WMLC to explore the file size of the card (we have an adaptation system that divides a document into several fragments for clients with smaller resources). Sebastian -- Die letzten Worte... des Fido-Points: Ich glaube nicht, dass der MOD ernst macht! PGP Key: 0x1E727CE6 / 9085 48BD 8332 4BFC D80C A6CF D162 20BB 1E72 7CE6 pgp0.pgp Description: PGP signature
How to convert a hierarchical structure to xml in java?
Hi, I'm in the middle of building an XSP page that can retrieve information from my CORBA-based server. I'm now writing a helper class in Java that can take the output of the server and transform it into something I can easily manage in the XSP page. However, I'm stuck. The results are in a hierarchical structure based on Vector and String or String[]. I want to manipulate this before returning it to the XSP page, but I don't want to traverse the structure for the manipulation and then once more in the XSP page to build the XML. Can anyone help? Bye, Helma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
daily digest (was: Sorry for the blast...)
Simply send a mail to [EMAIL PROTECTED] and you will be asked for confirmation of subscription. Joerg On 18.12.2003 16:11, Charles Williams wrote: but is there any way to get a daily digest for the mailing list? Chuck Williams [EMAIL PROTECTED] Why Wait? Move to EarthLink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Complete database sample with Cocoon 2.1 ?
Does anyone know of a more comprehensive sample than the one supplied in the Cocoon samples directory? (under cocoon/samples/databases/mod-db). In the sitemap, the comment is made that: * no parameter validation is done (in a real application, you'd want to check their values as well) * you'd want to use an action set for this or even better, call these actions from the flow layer! (The sitemap for this example also seems very verbose; considering just one table or two tables are being handled; can this approach not be 'generalized' further so that it can easily scale up to handle a more complex database - on the order of 20-60 tables) I assume that checking could (should?) be done with woody form - is there any single sample (even for one database table) that: * uses modular database actions * calls actions from a flow script * uses woody forms for validation [and shows how and where this fits into validation paradigm] If someone has worked through all these and is prepared to make something available, I can try and help out with documentation and explanation (to help the next person through the learning curve). It seems that Cocoon can be incredibly powerful ito separation of concerns, but that sometimes that power is hidden below layers of (unnecessary?) complexity. Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: [Woody] Binding problem for missing elements in source file
-Ursprüngliche Nachricht- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 12:12 An: [EMAIL PROTECTED] Betreff: Re: AW: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: -Ursprungliche Nachricht- Von: Upayavira Gesendet: Mittwoch, 17. Dezember 2003 16:49 An: [EMAIL PROTECTED] Betreff: Re: [Woody] Binding problem for missing elements in source file Markus Heussen wrote: Hi all. I'm new to the Woody framework but till now it works fine for me. But I have one problem I don't know how to solve at best :-( I get the following exception when I submit the form: org.apache.cocoon.woody.binding.BindingException: Problem binding field vn_titel (parent = ) to xpath v:Titel (context xpath = /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Par tner[1]/v:P er son[1]) org.apache.commons.jxpath.JXPathException: No value for xpath: v:Titel The field is defined in the form definition file and a binding is also defined in the woody binding file. But in one case there is no corresponding XML tag in my source file. In other case there is one. I have to create the element if it is missing. So how can I manage this situation at best? Who can point me to the right direction? Not sure if I'm right here, but I think you need 'lenient' jxpath within binding - this means that, if jxpath doesn't find a node, it ignores it, rather than causing an exception. But this is not exactly what I have to do. If there is no node in the source file I have to create this node before the binding saves it back to the source. How can I manage this at best? I have no experience in using the woody framework. When I set @readonly to true within the binding I get no exceptions because there is no saving process. But in fact I have to save it. I tried something around wb:insert-node/ but it didn't work :-( wb:delete-node/ does what I expected. Anyone there who can give me a hint? I really need this feature. I'm no expert either, and I've never used binding. I am talking about 'lenient' not 'readonly' or 'direction'. It was committed into CVS this morning, here's a snippet from the status.xml file: action dev=MPO type=add Changed semantics on the cforms binding. Added a @direction (which replaces the @read-only) and a @lenient attribute on all binding implementations in the pool. /action Still don't know if this is what you're after. Regards, Upayavira I spend some time learning more about this lenient thing and meanwhile I use a current developer version (about two hours old) for my application. But still it doesn't work :-( Maybe somebody can explain what I'm doing wrong. I have something like this: woody binding: wb:value id=vn_titel path=v:Titel lenient=true/ woody field: wd:field id=vn_titel required=false wd:labelTitel/wd:label wd:datatype base=string/ /wd:field On submit I get the following exception: org.apache.commons.jxpath.JXPathException: Exception trying to create xpath v:Titel; Factory is not set on the JXPathContext - cannot create path: /soap-env:Envelope[1]/soap-env:Body[1]/v:Versicherung[1]/v:Partner[1]/v:Pers on[1] Though it was recognized that the v:Titel node is not present in my source file. But what's my mistake? I also tried to set the lenient attribute on the parent context element but I still get the exception. I need your help because this feature is very basic for me. Thanks for your help. Markus Markus There has been discussion on the dev list about adding this over the last couple of days. I'm not sure if it is in CVS Cocoon yet, but I suspect it will be within a day or so. Regards, Upayavira Thanks for your help, Markus. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to write a file from cocoon
Would like to know how to output a file instead of pushing the output to a browser, e.g. XML or HTML JK - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [xsp-session-fw] NPE when use getxml with empty tag
You're right I can see it. We need a single line instruction. Something like that : fnc().getFirstNode() == null ? : fnc().getFirstNode().getNodeValue() But that not good because we compute fnc twice, so I put it in a variable ( node = fnc().getFirstNode()) != null ? : node.getNodeValue() Therefore the full expression becomes: xsp:expr(node = (DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, String.valueOf(xsl:copy-of select=$context/), String.valueOf(xsl:copy-of select=$path/.getFirstChild()) != null ? node.getNodeValue() : /xsp:expr This patch works for me. Hope for you. Best Regards, Laurent Trillaud -Message d'origine- De : Antonio Gallardo [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 décembre 2003 13:22 À : [EMAIL PROTECTED] Objet : RE: [xsp-session-fw] NPE when use getxml with empty tag Laurent Trillaud dijo: Yes, I know but in this case, I need a string. In fact the logicsheet is not safe enough because the java generated is ((DocumentFragment) blahblah).getFirstChild().getNodeValue(); Laurent I have the following problem with the solution you suggested. I use the getxml inside a xsp:expr: xsp:exprInteger.parseInt(xsp-session-fw:getxml context=authentication path=/authentication/data/loc_id as=string/)/xsp:expr This is translated to: (Integer.parseInt( node = ((DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, String.valueOf(authentication), String.valueOf(/authentication/data/loc_id.getFirstChild(); node != null ? node.getNodeValue() : )) In this sample this is a bad compiled code, because we cannot use inside a function Integer.parseInt 2 instructions: (DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, String.valueOf(authentication), String.valueOf(/authentication/data/loc_id.getFirstChild(); and node != null ? node.getNodeValue() : What we can do? Best Regards, Antonio Gallardo -Message d'origine- De : Antonio Gallardo [mailto:[EMAIL PROTECTED] Envoyé : mardi 16 décembre 2003 14:06 À : [EMAIL PROTECTED] Objet : Re: [xsp-session-fw] NPE when use getxml with empty tag Laurent Trillaud dijo: Hi From the portal engine, for example, when I use xsp-session- fw:getxml as=string context=authentication path=/authentication/data/title/ I got an NPE if this tag is empty. If I put something on it in the sunrise-user.xml from the portal sample, it's working fine. Any idea? Try: as=object More info @ http://wiki.cocoondev.org/Wiki.jsp?page=XspSessionFw Best Regards, Antonio Gallardo - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Index: session-fw.xsl === RCS file: /home/cvspublic/cocoon-2.1/src/blocks/session-fw/java/org/apache/cocoon/components/language/markup/xsp/java/session-fw.xsl,v retrieving revision 1.2 diff -u -r1.2 session-fw.xsl --- session-fw.xsl 11 Oct 2003 00:02:55 - 1.2 +++ session-fw.xsl 18 Dec 2003 16:50:09 - @@ -73,8 +73,12 @@ xsp:includeorg.apache.avalon.framework.component.ComponentManager/xsp:include xsp:includeorg.apache.cocoon.components.language.markup.xsp.XSPSessionFwHelper/xsp:include xsp:includeorg.w3c.dom.DocumentFragment/xsp:include +xsp:includeorg.w3c.dom.Node/xsp:include /xsp:structure + xsp:logic +Node node = null; + /xsp:logic xsl:variable name=create xsl:choose xsl:when test=@create-session='yes' or @create-session='true'true/xsl:when @@ -104,9 +108,10 @@ /xsl:variable xsl:choose xsl:when test=$as='string' -xsp:expr((DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, + xsp:expr(node = ((DocumentFragment)(XSPSessionFwHelper.getXML(this.manager, String.valueOf(xsl:copy-of select=$context/), -String.valueOf(xsl:copy-of select=$path/.getFirstChild().getNodeValue()/xsp:expr +String.valueOf(xsl:copy-of select=$path/.getFirstChild()) != null ? +node.getNodeValue() : /xsp:expr /xsl:when xsl:when test=$as='xml' xsp-session-fw:xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to write a file from cocoon
if you want to write this file in file system check sourceWrite transformer --stavros On Thu, 18 Dec 2003, Johan Kok wrote: Would like to know how to output a file instead of pushing the output to a browser, e.g. XML or HTML JK - 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]
RE: How to write a file from cocoon
Maybe this helps: http://wiki.cocoondev.org/Wiki.jsp?page=DownloadFilesToLocalDisk Bye, Helma -Original Message- From: Johan Kok [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 17:56 To: [EMAIL PROTECTED] Subject: How to write a file from cocoon Would like to know how to output a file instead of pushing the output to a browser, e.g. XML or HTML JK - 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]
Re: Custom jars, where to put them?
[EMAIL PROTECTED] wrote: Could it be possible that it is not allowed for one user to have both admin and manager roles? No. I routinely logon as a user that has both the manager and admin roles. Ugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Complete database sample with Cocoon 2.1 ?
Hi, I hoped, and I still hope, that the Petstore sample will become a such a comprehensive sample, showing how all the different components working together in a best practice way. With the patch http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24463 the functionality of the Petstore is almost complete and I added form validation with woody, but the sample is still far away from being best practice. The sample needs refactoring, especially the model and the DB part, that is currently completely coded in JS. I volunteer to help refactoring, for example I can improve woody part. /Leo On Dec 18, 2003, at 11:38 AM, Derek Hohls wrote: Does anyone know of a more comprehensive sample than the one supplied in the Cocoon samples directory? (under cocoon/samples/databases/mod-db). In the sitemap, the comment is made that: * no parameter validation is done (in a real application, you'd want to check their values as well) * you'd want to use an action set for this or even better, call these actions from the flow layer! (The sitemap for this example also seems very verbose; considering just one table or two tables are being handled; can this approach not be 'generalized' further so that it can easily scale up to handle a more complex database - on the order of 20-60 tables) I assume that checking could (should?) be done with woody form - is there any single sample (even for one database table) that: * uses modular database actions * calls actions from a flow script * uses woody forms for validation [and shows how and where this fits into validation paradigm] If someone has worked through all these and is prepared to make something available, I can try and help out with documentation and explanation (to help the next person through the learning curve). It seems that Cocoon can be incredibly powerful ito separation of concerns, but that sometimes that power is hidden below layers of (unnecessary?) complexity. Thanks Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - 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]
AW: Error while starting tomcat + Cocoon 2.1.3
:-) in your local.blocks.properties (which you copied from blocks.properties) ensure that the line containing 'exclude.block.deli=true' is uncommented. same is true for other blocks. -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von [EMAIL PROTECTED] Gesendet: Donnerstag, 18. Dezember 2003 16:22 An: [EMAIL PROTECTED] Betreff: RE: Error while starting tomcat + Cocoon 2.1.3 Thanks, I'll wait a while before playing with deli. :-) How do I disable the block? Is it sufficient to remove the *deli*.jar from the lib directory? Bye, Helma -Original Message- From: Marco Rolappe [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 15:49 To: [EMAIL PROTECTED] Subject: AW: Error while starting tomcat + Cocoon 2.1.3 if you're thinking about playing with DELI then I hope for you that it's currently not broken. I don't know exactly anymore. but I think there were problems with DELI recently. you might want to check the mailing lists for it. yes, you need the block to check out the samples. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: users Digest 17 Dec 2003 21:47:17 -0000 Issue 2422
James Cummings wrote: xsl:copy-of select=document('../../html/header.xml')/ Why isn't this recommended? It seems to fail absolutely fine with no side effects if header.xml doesn't exist or is not well-formed. (i.e. it just isn't included). Is there something bad about it I'm not seeing? Changing the header.xml does not invalidate the cached result, which is sent to the browser until the main source, the style sheet or any other component recognized by the caching mechanism changes. There are other reasons as well. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Best practice for delivering nested data to XSP ? (was: How to co nvert a hierarchical structure to xml in java?)
Hi, Maybe rephrasing the problem makes it clearer: I'm building an XSP page that calls a Java Helper class which gets the data in a hierarchical form. What I'd like to know is: what's the best way of delivering the result to the calling XSP page without having to traverse the hierarchy twice. Example: class MyClass { public WhichDataType getData() { get data from data source return result; } When I would serialize the result data it could look like this: TopElement IDsome id/ID element namenameOfElement/name valuesomeValue/value /element element nameanotherElement/name element nameaSubElement/name valuethis Element's value/value /element element nameThis could also be nested/name valuejust a simple value/value /element /element /TopElement The xml above is not the data I get from the data source, I have to manipulate it to make it easier to process in Cocoon. If I do that I might as well use a datatype that I don't have to manually parse again in XSP to build the above structure using xsp:element? Does anyone have ideas about the best way to handle this? I've thought about putting everything in a long String, but I don't know how to parse the String in XSP to the corresponding XML. Bye, Helma -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 16:43 To: [EMAIL PROTECTED] Subject: How to convert a hierarchical structure to xml in java? Hi, I'm in the middle of building an XSP page that can retrieve information from my CORBA-based server. I'm now writing a helper class in Java that can take the output of the server and transform it into something I can easily manage in the XSP page. However, I'm stuck. The results are in a hierarchical structure based on Vector and String or String[]. I want to manipulate this before returning it to the XSP page, but I don't want to traverse the structure for the manipulation and then once more in the XSP page to build the XML. Can anyone help? Bye, Helma - 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]
Re: Best practice for delivering nested data to XSP ? (was: How to co nvert a hierarchical structure to xml in java?)
it's not the same but i have the need to create nestet xml elements with data from a data table the solution was to create a recursive function into my xsp hope that this can help you to figure a solution ?xml version=1.0 encoding=ISO-8859-1? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xsp:logic void getChilds(String parent_id, AttributesImpl xspAttr){ try{ esql:connection esql:poolhotpoints/esql:pool esql:execute-query esql:queryselect * from tblElements WHERE element_Parent=xsp:exprparent_id/xsp:expr/esql:query esql:results esql:row-results element xsp:logic parent_id = esql:get-string column=id_Elements/; /xsp:logic esql:get-columns/ xsp:logic getChilds(parent_id, xspAttr); /xsp:logic /element /esql:row-results /esql:results esql:no-results the_enddone/the_end /esql:no-results /esql:execute-query /esql:connection } catch (Exception e) { } } /xsp:logic tree elements xsp:logic String root_element =xsp-request:get-parameter name=root_element/; getChilds(root_element,xspAttr); /xsp:logic /elements /tree /xsp:page --stavros On Thu, 18 Dec 2003 [EMAIL PROTECTED] wrote: Hi, Maybe rephrasing the problem makes it clearer: I'm building an XSP page that calls a Java Helper class which gets the data in a hierarchical form. What I'd like to know is: what's the best way of delivering the result to the calling XSP page without having to traverse the hierarchy twice. Example: class MyClass { public WhichDataType getData() { get data from data source return result; } When I would serialize the result data it could look like this: TopElement IDsome id/ID element namenameOfElement/name valuesomeValue/value /element element nameanotherElement/name element nameaSubElement/name valuethis Element's value/value /element element nameThis could also be nested/name valuejust a simple value/value /element /element /TopElement The xml above is not the data I get from the data source, I have to manipulate it to make it easier to process in Cocoon. If I do that I might as well use a datatype that I don't have to manually parse again in XSP to build the above structure using xsp:element? Does anyone have ideas about the best way to handle this? I've thought about putting everything in a long String, but I don't know how to parse the String in XSP to the corresponding XML. Bye, Helma -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 16:43 To: [EMAIL PROTECTED] Subject: How to convert a hierarchical structure to xml in java? Hi, I'm in the middle of building an XSP page that can retrieve information from my CORBA-based server. I'm now writing a helper class in Java that can take the output of the server and transform it into something I can easily manage in the XSP page. However, I'm stuck. The results are in a hierarchical structure based on Vector and String or String[]. I want to manipulate this before returning it to the XSP page, but I don't want to traverse the structure for the manipulation and then once more in the XSP page to build the XML. Can anyone help? Bye, Helma
Re: Complete database sample with Cocoon 2.1 ?
Derek Hohls wrote: Does anyone know of a more comprehensive sample than the one supplied in the Cocoon samples directory? (under cocoon/samples/databases/mod-db). In the sitemap, the comment is made that: * no parameter validation is done (in a real application, you'd want to check their values as well) * you'd want to use an action set for this or even better, call these actions from the flow layer! This last ability has been removed from flow. One can call actions like any other component from flow, but considering the required setup to fulfill the parameters needed for the act() method (The sitemap for this example also seems very verbose; considering just one table or two tables are being handled; can this approach not be 'generalized' further so that it can easily scale up to handle a more complex database - on the order of 20-60 tables) The key would be to use e.g. request parameters to select the right table-set and validation-set. However, this approach does not scale to complex transactions. I assume that checking could (should?) be done with woody form - is there any single sample (even for one database table) that: Adding cocoon forms aka woody and flow to the picture would also suggest to use eg OJB or Hibernate for a persistence layer. There's a OJB block in the distribution which illustrates the basic usage. To use the mod-db actions (which is possible) would require to use some JXPath enabled input module that can access the form model. I believe there's no ready made one, but creating one should be quite simple. However, if there's (almost) no business logic involved and syntactic validation of single values that can be done eg with regular expressions, you might look into the simple form transformer and accompanying simple form instance transformer plus form validator action. Anyway, this does not scale to complex business logic. HTH Chris. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in passing http request parameters
Hi! Try this code: xsl:variable name=var1 select=sql:id/ option xsl:attribute name=value xsl:textnew.xls?dis=/xsl:text xsl:value-of select=$var1/ /xsl:attribute xsl:value-of select=sql:name/ /option hope that helps, Gernot HI ALL, I have to pass two paramters in an html page to the http url that will generate the report using cocoon like: http://localhost:8080/cocoon/reports/new.xls?dis=MT-301c_code=HR There r two problems: 1) The first parameter comes from a drop down menu, the tags r following: p align=left select size=1 name=D1 onchange=MM_jumpMenu('parent',this,1) option selected=SELECT--SELECT---/option xsl:for-each select=sql:rowset/sql:row xsl:variable name=var1 select=sql:id/ option value=new.xls?dis=$var1 !-- option value=new.xls?dis=sql:id -- ALSO TRIED THIS -- xsl:value-of select=sql:name/ /option /xsl:for-each /select /p here onchange=MM_ is from java script. The drop down menu displaying all entries and javascript is also working ok, but the request url is ...new.xls?dis=$var1 instead of ...new.xls?dis=MT-301 (i.e. id from database). what can be the problem... 2) I have to pass second parameter from a simple query, where I m using the line: xsl:attribute name=HREFc_code=xsl:value-of select=../sql:cor//xsl:attribute No problem in query, but this dosn't add to the 1st request above and I can't use here it shows error, what's the way to do this? Thanx in advance, REGARDS, Sleight of hand and twist of fate, On a bed of nails she makes me wait... ASHISH KUMAR, B. TECH. 3rd YR. IIT ROORKEE, INDIA. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [xsp-session-fw] NPE when use getxml with empty tag
I already posted a patch, it is in the CVS. Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to convert a hierarchical structure to xml in java?
Helma have a look at the CastorTransfomer (currently still living in the scratchpad folder), as it might provide what you are looking for. A general introduction to Castor XML can be found at http://castor.exolab.org. Werner On Thu, 18 Dec 2003 16:43:29 +0100, [EMAIL PROTECTED] wrote: Hi, I'm in the middle of building an XSP page that can retrieve information from my CORBA-based server. I'm now writing a helper class in Java that can take the output of the server and transform it into something I can easily manage in the XSP page. However, I'm stuck. The results are in a hierarchical structure based on Vector and String or String[]. I want to manipulate this before returning it to the XSP page, but I don't want to traverse the structure for the manipulation and then once more in the XSP page to build the XML. Can anyone help? Bye, Helma - 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]
URL encoding in sitemap?
Hello list, I want to make a query front end to the IMDB movie database. To do this, I have a cocoon matcher that receives a query parameter and pass it along to the IMDB query url. Very simple. But how do I URL encode the query parameterin the sitemap? This is not done automatically. !-- -- !-- imdb find tst -- !-- -- map:match pattern=findimdb map:generate type=html src=http://www.imdb.com/Find?for={request-param:for}; /map:generate map:transform src=stylesheets/parseimdb.xsl/ map:serialize type=xml/ /map:match If for contains whitespace, the pipeline will crash. I've tried the wsproxy generator too, and it's having the same problem. Whats the correct way to do it? I've tried making a solution somewhat like this: map:generate type=html src=http://www.imdb.com/Find; map:param name=use-request-params value=true/ map:param name=for value={request-param:for}/ /map:generate But it doesn't propagate the parameter value at all. It seems the {} tags can contain jxpath expressions, can this be used to call the URLEncode funtion? /Joakim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem in passing http request parameters
HI there, Thanx, it worked, but I m still hanging with the second problem, i.e. how to pass more than one parameter. Any help Plz REGARDS. ASHISH On Thu, 18 Dec 2003, Gernot Koller wrote: Hi! Try this code: xsl:variable name=var1 select=sql:id/ option xsl:attribute name=value xsl:textnew.xls?dis=/xsl:text xsl:value-of select=$var1/ /xsl:attribute xsl:value-of select=sql:name/ /option hope that helps, Gernot HI ALL, I have to pass two paramters in an html page to the http url that will generate the report using cocoon like: http://localhost:8080/cocoon/reports/new.xls?dis=MT-301c_code=HR There r two problems: 1) The first parameter comes from a drop down menu, the tags r following: p align=left select size=1 name=D1 onchange=MM_jumpMenu('parent',this,1) option selected=SELECT--SELECT---/option xsl:for-each select=sql:rowset/sql:row xsl:variable name=var1 select=sql:id/ option value=new.xls?dis=$var1 !-- option value=new.xls?dis=sql:id -- ALSO TRIED THIS -- xsl:value-of select=sql:name/ /option /xsl:for-each /select /p here onchange=MM_ is from java script. The drop down menu displaying all entries and javascript is also working ok, but the request url is ...new.xls?dis=$var1 instead of ...new.xls?dis=MT-301 (i.e. id from database). what can be the problem... 2) I have to pass second parameter from a simple query, where I m using the line: xsl:attribute name=HREFc_code=xsl:value-of select=../sql:cor//xsl:attribute No problem in query, but this dosn't add to the 1st request above and I can't use here it shows error, what's the way to do this? Thanx in advance, REGARDS, Sleight of hand and twist of fate, On a bed of nails she makes me wait... ASHISH KUMAR, B. TECH. 3rd YR. IIT ROORKEE, INDIA. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- +++ GMX - die erste Adresse für Mail, Message, More +++ Neu: Preissenkung für MMS und FreeMMS! http://www.gmx.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sleight of hand and twist of fate, On a bed of nails she makes me wait... ASHISH KUMAR, B. TECH. 3rd YR. IIT ROORKEE, INDIA. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL encoding in sitemap?
joakim verona wrote: Hello list, I want to make a query front end to the IMDB movie database. To do this, I have a cocoon matcher that receives a query parameter and pass it along to the IMDB query url. Very simple. But how do I URL encode the query parameterin the sitemap? This is not done automatically. Yep, I originally thought the RawRequestParamInputModule would do this, but apparently, it won't. There are threads in the archives about the raw-request-param module. The solution is to write a metamodule that will URLEncode (or decode) a given string... this has been on my plate for a while, and may actually get done within the next couple weeks. snip It seems the {} tags can contain jxpath expressions, can this be used to call the URLEncode funtion? I'm not too familliar with all the inner workings of jxpath, or calling functions from it, so I would guess that you'd just have to experiment. IMO the cleanest solution is a URLEncodingMetaModule... /Joakim Regards, Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Migration Problems 2.1.2 - 2.1.3 eventcache and headerselect or
After much trial and error I was able to get the cocoon's xpatch ant task to run in maven. I have created several patch files for my own cocoon components and then patch the cocoon.xconf created by the Cocoon build. To do this I created this goal: goal name=patch ant:taskdef name=xpatch classname=XConfToolTask classpathref=maven.dependency.classpath/ echococoon.xconf: ${cocoon.xconf}/echo j:set var=banking value=true/ ant:xpatch file=${cocoon.xconf} srcdir=${maven.src.dir}/config includes=**/*.xconf addComments=true ${systemScope.setProperty('javax.xml.transform.TransformerFactory', 'org.apache.xalan.processor.TransformerFactoryImpl')} /ant:xpatch /goal I also had to manually jar the classes in tools/anttasks and make it a project dependency for this to work. Ralph -Original Message- From: Gernot Koller [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: Migration Problems 2.1.2 - 2.1.3 eventcache and headerselector By the way if anybody has a better method of migrating the cocoon.xconf file from one version to the next, than the poor heuristics that I use, please enlighten me !! Thanks for your input, Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Migration Problems 2.1.2 - 2.1.3 eventcache and headerselector
Gernot Koller wrote: Hi In my application I use the following pipeline fragment: map:select type=header map:parameter name=header-name value=X-Cocoon-Portal / map:when test=true map:transform type=rsf_components map:parameter name=components value=portal / /map:transform map:serialize type=xml / /map:when map:otherwise map:transform type=rsf_components / map:serialize type=html / /map:otherwise /map:select what it should do is: when ever the http header X-Cocoon-Portal is set to 'true' it should invoke the rsf_components transformer with a special parameter and serialize xml content. If the header is not set it should invoke the transformer without the parameter and serialize html. This works as expected using Cocoon 2.1.2. After migrating to cocoon 2.1.3 it stopped working and it seemed that always the 'otherwise' path was executed regardeless of any header values. After some painfull hours of debugging I could track it down to the these two lines in the cocoon.xconf: !--. Start configuration from 'eventcache' -- component class=org.apache.cocoon.caching.impl.EventAwareCacheImpl role=org.apache.cocoon.caching.Cache/EventAware/ !--. End configuration from 'eventcache' -- !--. Start configuration from 'eventregistry' -- component class=org.apache.cocoon.caching.impl.DefaultEventRegistryImpl role=org.apache.cocoon.caching.EventRegistry/ !--. End configuration from 'eventregistry' -- With these two lines in the cocoon.xconf the behaviour is wrong, without them everythings seems to work be allright. I do not have much of an idea what these two lines really do but it seems to have something to do with caching. Maybe the problem is that the request without headerparameter has been cached and sending a request with the headerparameter still fetches the old (wrong) result from the cache. This is just me speculating, but it would explain what I'm experiencing. Actually I have no problems leaving out these two lines in the cocoon.xconf but I have no idea what consequences this might have. I definitly don't want to disable caching totaly and the shown pipeline fragment is part of the resource every single request of my application uses for rendering. By the way if anybody has a better method of migrating the cocoon.xconf file from one version to the next, than the poor heuristics that I use, please enlighten me !! Thanks for your input, Gernot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: How do you use CVS?
Yeah I saw that. There's a lot to learn as a newbie to CVS. What I did for now was use the -kb option so that CVS didn't tranlate line breaks or do any keyword substitution. After reading about keyword substitution though I'm thinking that it could be used with XSP to give you version numbers. The point made about using disc space on binaries since CVS can't store the diffs is a good one. I think I'll reorganize my directories so I don't have binary files and text file mixed in the same dir. Thanks, Justin On Dec 17, 2003, at 6:00 PM, Ryan Hoegg wrote: CVSROOT/cvswarappers http://www.cvshome.org/docs/manual/cvs-1.11.10/cvs_18.html#SEC164 Morley Howell wrote: Regarding CVS, you should be able to check in a directory with mixed binary and text files. There's a file you can edit in the CVSROOT (can't remember which file) that lets you configure CVS to recognize which files are binary by their extension. Morley - 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]
Re: How to convert a hierarchical structure to xml in java?
Helma, I don't know that there's anything you can do about that, unless you want your helper class to also generate SAX events. Even if you created a DOM structure it would have to be traversed to generate a SAX stream. How big is this structure? Is traversing it twice that bad? Justin On Dec 18, 2003, at 7:43 AM, [EMAIL PROTECTED] wrote: Hi, I'm in the middle of building an XSP page that can retrieve information from my CORBA-based server. I'm now writing a helper class in Java that can take the output of the server and transform it into something I can easily manage in the XSP page. However, I'm stuck. The results are in a hierarchical structure based on Vector and String or String[]. I want to manipulate this before returning it to the XSP page, but I don't want to traverse the structure for the manipulation and then once more in the XSP page to build the XML. Can anyone help? Bye, Helma - 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]
Re: Migration Problems 2.1.2 - 2.1.3 eventcache and headerselector
Gernot Koller wrote: Hi In my application I use the following pipeline fragment: map:select type=header map:parameter name=header-name value=X-Cocoon-Portal / map:when test=true map:transform type=rsf_components map:parameter name=components value=portal / /map:transform map:serialize type=xml / /map:when map:otherwise map:transform type=rsf_components / map:serialize type=html / /map:otherwise /map:select what it should do is: when ever the http header X-Cocoon-Portal is set to 'true' it should invoke the rsf_components transformer with a special parameter and serialize xml content. If the header is not set it should invoke the transformer without the parameter and serialize html. This works as expected using Cocoon 2.1.2. After migrating to cocoon 2.1.3 it stopped working and it seemed that always the 'otherwise' path was executed regardeless of any header values. After some painfull hours of debugging I could track it down to the these two lines in the cocoon.xconf: !--. Start configuration from 'eventcache' -- component class=org.apache.cocoon.caching.impl.EventAwareCacheImpl role=org.apache.cocoon.caching.Cache/EventAware/ !--. End configuration from 'eventcache' -- !--. Start configuration from 'eventregistry' -- component class=org.apache.cocoon.caching.impl.DefaultEventRegistryImpl role=org.apache.cocoon.caching.EventRegistry/ !--. End configuration from 'eventregistry' -- With these two lines in the cocoon.xconf the behaviour is wrong, without them everythings seems to work be allright. I do not have much of an idea what these two lines really do but it seems to have something to do with caching. This is really, really bizarre for a couple of reasons. - First, the EventAwareCache should not even be used on your pipeline unless explicitly configured to do so. Can you send the part of your sitemap that defines this pipeline (map:pipeline...)? The fact that removing those lines from cocoon.xconf fixes the problem and doesn't totally break the pipeline is a sign that this is not the case.. - Second, unless any of the components you are using define event aware validities, the EventAware Cache should ignore them and let the normal cache impl handle them. You don't give the generator part of this pipeline - that could give a clue. Now, the portal uses some of its own caches and it is possible that something is going haywire there. Try using the selector with a different header not in the context of the portal. User agent might be an easy one - you could just use two different browsers. Alternatively, if you use mozilla I think you can get a plugin (liveHeaders?) to let you edit the headers your browser sends for a request. Another option is to use this little app a friend made: http://www.networksimplicity.com/utils/ (look for TelHelper). If this only happens on Portal requests but not with other headers, we'll have to consult with Carsten. However, I am most suspicious that this has something to do with the upgrade process from 2.1.2-2.1.3 and is not necessarily a behavior that would be replicated in a fresh install. Can you try to confirm that? First step would be to confirm that removing them fixes the problem and putting them back in breaks it again. Then, with a fresh build of 2.1.3 try to create a minimal test pipeline. If it still always fails, send me the test pipeline and anything I'll need to replicate it here. Maybe the problem is that the request without headerparameter has been cached and sending a request with the headerparameter still fetches the old (wrong) result from the cache. This is just me speculating, but it would explain what I'm experiencing. That's reasonable, but the way the caching is supposed to work is this: 1) All sitemap elements which help to determine pipeline setup are executed (selectors, matchers, actions, flowscripts). 2) Once a generator-transformer*-serializer pipeline set is constructed, each element is asked to generate a pipeline key based on whatever criteria it chooses which will uniquely identify the content it would create if asked to do so. (i.e., if a generator makes different content for each src attribute, but no other factor influences the content, it should only look at and use the src attribute in constructing the key). 3) Using the aggregated key, the cache is searched for a matching entry. 4) If found, the cached entry has each validity examined to determine if the cached response is still valid. 5) If still valid it's returned - if not, it's discarded and the pipeline is executed again. Now, in your case, the two pipelines are not identical (different serializer, and different parameter to the transformer) so the cached response for otherwise should not even enter the picture because it shouldn't be returned from the cache lookup. Actually I have no problems leaving out these two lines in the cocoon.xconf but I have no idea what
RE: How to convert a hierarchical structure to xml in java?
All posters thanks for the input. I finally decided to do only minimal manipulation in the helper class and build the structure in the XSP file, like someone else suggested. I'll see where it leads. No, for now there won't be big structures for now, but it might be in future. Bye, Helma -Original Message- From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 22:48 To: [EMAIL PROTECTED] Subject: Re: How to convert a hierarchical structure to xml in java? Helma, I don't know that there's anything you can do about that, unless you want your helper class to also generate SAX events. Even if you created a DOM structure it would have to be traversed to generate a SAX stream. How big is this structure? Is traversing it twice that bad? Justin On Dec 18, 2003, at 7:43 AM, [EMAIL PROTECTED] wrote: Hi, I'm in the middle of building an XSP page that can retrieve information from my CORBA-based server. I'm now writing a helper class in Java that can take the output of the server and transform it into something I can easily manage in the XSP page. However, I'm stuck. The results are in a hierarchical structure based on Vector and String or String[]. I want to manipulate this before returning it to the XSP page, but I don't want to traverse the structure for the manipulation and then once more in the XSP page to build the XML. Can anyone help? Bye, Helma - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Custom jars, where to put them?
All posters thank you for your input and thoughts. I finally nailed it down to a faulty docbase line in the Context. I used a Linux style /jakarta-tomcat-4.1.29/ while working on a Windows XP machine. When I changed it to D:\jakarta-tomcat-4.1.29\. it worked flawlessly. Bye, Helma -Original Message- From: Ugo Cei [mailto:[EMAIL PROTECTED] Sent: Thursday, 18 December 2003 18:29 To: [EMAIL PROTECTED] Subject: Re: Custom jars, where to put them? [EMAIL PROTECTED] wrote: Could it be possible that it is not allowed for one user to have both admin and manager roles? No. I routinely logon as a user that has both the manager and admin roles. Ugo - 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]
Re: URL encoding in sitemap?
Thanks Tony, So at least this wasn't totally easy. I'm not familiar enough with the modules to write one yet, so I'll experiment with the jxpath option. Another workaround I thought about, but didn't want to test if there was a simple way to solve it, is to use the jx transformer, the urlencode transformer and the xinclude transformer. - there would be a template file containing a xinclude statement built with jx path expressions - the jx transformer would build a proper xinclude statement with my parameters substituted - the urlencode transformer would urlencode the href - the xinclude transformer would read and include the html from the remote site This would be kind of clumsy, but ought to work. A sitemap solution would be preferable. /Joakim Tony Collen wrote: joakim verona wrote: Hello list, I want to make a query front end to the IMDB movie database. To do this, I have a cocoon matcher that receives a query parameter and pass it along to the IMDB query url. Very simple. But how do I URL encode the query parameterin the sitemap? This is not done automatically. Yep, I originally thought the RawRequestParamInputModule would do this, but apparently, it won't. There are threads in the archives about the raw-request-param module. The solution is to write a metamodule that will URLEncode (or decode) a given string... this has been on my plate for a while, and may actually get done within the next couple weeks. snip It seems the {} tags can contain jxpath expressions, can this be used to call the URLEncode funtion? I'm not too familliar with all the inner workings of jxpath, or calling functions from it, so I would guess that you'd just have to experiment. IMO the cleanest solution is a URLEncodingMetaModule... /Joakim Regards, Tony - 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]
sitemap circular reference
Hi, I'd like to make in the sitemap feature, that if you will call url file/123 or blabla/file/123 or bla/bla/bla/file/123, it will use databasereader everytime. I think, it could be done by this code, but that doesn't work (browser calls too much redirections). Why? map:match pattern=**/file/* map:redirect-to uri=file/{2}/ /map:match map:match pattern=file/* map:read type=databasereader src={1} mime-type=plain/text ... /map:read /map:match Thanx a lot! osup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: sitemap circular reference
I have it, it can be done just by pattern **file/*. But why doesn't work previous example? It looks like correctly in my opinion. osup Otmar Vobejda wrote: Hi, I'd like to make in the sitemap feature, that if you will call url file/123 or blabla/file/123 or bla/bla/bla/file/123, it will use databasereader everytime. I think, it could be done by this code, but that doesn't work (browser calls too much redirections). Why? map:match pattern=**/file/* map:redirect-to uri=file/{2}/ /map:match map:match pattern=file/* map:read type=databasereader src={1} mime-type=plain/text ... /map:read /map:match Thanx a lot! osup - 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]