AW: [C2.2] set web.xml params

2008-07-25 Thread Matthias Müller
thanks Barbara and Alessandro for replying, somehow i don't have the core.properties file in my block. i even don't have a cocoon folder in src/main/resources/META-INF/ did i something wrong while creating the block? regards, matthias - Ursprüngliche Mail Von: Alessandro Vincelli

Re: AW: [C2.2] set web.xml params

2008-07-25 Thread Grzegorz Kossakowski
Matthias Müller pisze: thanks Barbara and Alessandro for replying, somehow i don't have the core.properties file in my block. i even don't have a cocoon folder in src/main/resources/META-INF/ did i something wrong while creating the block? Hello Matthias, The core.properties file contains

URLs of local resources in XSLT

2008-07-25 Thread Peter Molnar
Hi all, I'm want to include an XSLT file from the local block. Which URL scheme should I use (ie. cocoon:/ , servlet:/, file:/)? -- Peter Molnar [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: URLs of local resources in XSLT

2008-07-25 Thread Grzegorz Kossakowski
Peter Molnar pisze: Hi all, I'm want to include an XSLT file from the local block. Which URL scheme should I use (ie. cocoon:/ , servlet:/, file:/)? Hi Peter, if you want to simply include given file _statically_ then just omit a scheme and use path relative to the COB-INF directory.

Re: AW: [C2.2] set web.xml params

2008-07-25 Thread Alessandro Vincelli
I'ts corrrect, but I think it's necessary override this property: # Set here to a very low 100 kb to allow samples to run. org.apache.cocoon.uploads.maxsize=102400 Then Matthias, you can add this directory: src/main/resources/META-INF/cocoon/properties But it's wired, when you create a block

[C2.2] Form Request Params in Sitemap

2008-07-25 Thread Matthias Müller
hi again, in a sitemap, how can i access request params sent by a form? i need to redirect a continuation-id sent by a form to another pipeline.. i tried it like this: map:match pattern=DO_IT map:redirect-to uri=cocoon:/{$cocoon/request/parameters/continuation-id}.continue/

RE: Is it possible to set response headers from within a sitemap?

2008-07-25 Thread Philip Fennell
Andy, Thank you very much for the info. It works a treat :-) Regards Philip Fennell XSLT Developer (Content Management Culture) BBC Future Media Technology Media Village, 201 Wood Lane London W12 7TP BC4 C4, Broadcast Centre T: 0208 0085318 -Original Message- From: Andy

Migrating Cocoon 2.1 project to Cocoon 2.2

2008-07-25 Thread JLe
Hi all, I have an existing Cocoon application written under cocoon 2.1 (old version) now, after the release of 2.2.0 i am going to upgrade my application to the new cocoon release because of performance reasons. Does anyone already have experience doing this? - are there some special things

flowscript string length

2008-07-25 Thread Jeff Schmitz
Using cocoon 2.1 I'm trying to get the length of a string in my flowscript code, but it always returns undefined instead of a number. I've tried both of the below with the same results: var part = this is a test; var last = part.length(); var last = part.length; Do the string properties

Re: flowscript string length

2008-07-25 Thread Joerg Heinicke
On 25.07.2008 15:56, Jeff Schmitz wrote: Using cocoon 2.1 I'm trying to get the length of a string in my flowscript code, but it always returns undefined instead of a number. I've tried both of the below with the same results: var part = this is a test; var last = part.length(); var last =

Re: flowscript string length

2008-07-25 Thread Jeff Schmitz
I also can't seem to get the substring function to work. When I try: var part2 = part.substring(0, last); I get the following exception: org.mozilla.javascript.EcmaError: TypeError: Cannot find function substring. (file:///Applications/cocoon-2.1.11/build/webapp/owlTrans/flow/sif.js #83)

Re: flowscript string length

2008-07-25 Thread Jeff Schmitz
Sorry for all the double posts, not sure what's going on with my e-mail. Also, I figured the problem out. The part object was getting set to something other than a string in another part of the code. Thanks, Jeff On Jul 25, 2008, at 10:02 AM, Jeff Schmitz wrote: I also can't seem to get

Cocoon 2.2.1 - Context path at root doesn't work

2008-07-25 Thread Hugh Sparks
I've been developing a blockless webapp that has the sitemap context path set to root: bean id=mydomain.com.mything.service class=org.apache.cocoon.sitemap.SitemapServlet servlet:context mount-path= context-path=/ /bean When I updated from cocoon-core-2.2.0 to 2.2.1, I got this error

Re: block communication and page fragment

2008-07-25 Thread Mansour Al Akeel
Nothing seems to be working. Here's the contents of my servlet-servlet.xml for block3. bean id=block3 class=org.apache.cocoon.sitemap.SitemapServlet servlet:context mount-path=/block3 context-path=blockcontext:/block3/ servlet:connections entry key=block1