Re: large xml's in cocoon

2004-05-26 Thread gounis
On Tue, 25 May 2004, Bertrand Delacretaz wrote: Le 25 mai 04, 20:57, Anna Bikkina a crit : ...I have a xml file that contains database rows. If the number of rows are greater than 5000 then cocoon fails to tranform them to html and display them. It gives a blank page with no

Re: large xml's in cocoon

2004-05-26 Thread Bertrand Delacretaz
Le 26 mai 04, à 08:43, [EMAIL PROTECTED] a écrit : is somewhere any doc about JVM ? Use java -h, java -X or see the JDK docs. The cocoon.sh script passes options from the JAVA_OPTIONS environment variable to the JVM. -Bertrand -

RE: Session handling

2004-05-26 Thread Oro smith
Im using Cocoon to develop a mail appln. When the reply button is clicked in a received mail, the 'To' address field is generated automatically... Where exactly is this stored in Cocoon ? Is it stored as an object? How can the user name of the sender of the mail be obtained? Smith.

Re: how to do form custom validators

2004-05-26 Thread Bruno Dumon
On Wed, 2004-05-26 at 01:07, Joerg Heinicke wrote: On 26.05.2004 00:53, Benoit Deshaies wrote: I looked at the sample you posted Vadim. I have a question and a comment regarding validation using fd:javascript. In those JS snippets, can you access the cocoon object (like session) and can

Re: Session handling

2004-05-26 Thread Christian Mayrhuber
On Tuesday 25 May 2004 12:10, Oro smith wrote: Does anyone know how the user id of the current user who has logged in can be obtained? I need this to fill the 'to' address field when replying to a mail. regds, Smith - Still single? Click here

Re: Including external .xconf file in cocoon.xconf

2004-05-26 Thread Upayavira
roy huang wrote: cocoon version=2.1 user-roles=/WEB-INF/yourrolefile.xconf That isn't correct. That is for including your own cocoon.roles file, which would otherwise need to be within the cocoon.jar file. There is not any, to the best of my knowledge, way of including an external xconf

Java code in xsp page

2004-05-26 Thread Oro smith
How can i include java code in xsp page ? Does cocoon webmail recognise classes like Address,Message which are present in the javax.mail.* package ? Can i include these classes within the xsp code? How can strings be displayed in xsp ? thank you. Smith

Please give me a hand

2004-05-26 Thread s . q . huang
Dear All, I meet some problem while serializing XML to Excel, Your help will be much appreciate. In my sample output, It can show variable styles within one sheet, Please see attached xml output Excel file. But I found the styles can't be effective if I set the region's endRow = 10. ?

Re: Java code in xsp page

2004-05-26 Thread John L. Webber
You might check the following page in the Cocoon Wiki - it should answer your questions: http://wiki.cocoondev.org/Wiki.jsp?page=XSP Oro smith wrote: How can i include java code in xsp page ? Does cocoon webmail recognise classes like Address,Message which are present in the javax.mail.*

RE: Java code in xsp page

2004-05-26 Thread robby . pelssers
xsp:page language=java xmlns:xsp=http://apache.org/xsp; xsp:structure xsp:includejava.util.Date/xsp:include xsp:includejava.util.GregorianCalendar/xsp:include xsp:includejava.text.SimpleDateFormat/xsp:include /xsp:structure page xsp:logic GregorianCalendar

RE: Java code in xsp page

2004-05-26 Thread Florent Barbare
For example like this : ?xml version=1.0 encoding=ISO-8859-1? ?cocoon-process type=xsp? 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;

ResourceReader and charset information

2004-05-26 Thread [EMAIL PROTECTED]
How can I tell ResourceReader to put a certain charset in the http header? map:match pattern=*.css map:read type=resource src=resources/styles/{1}.css charset=utf-8 == This doesn't work. How can I get it? mime-type=text/css !-- option sitemap parameters -- ... /map:read

Cocoon initialisation error

2004-05-26 Thread agustinus.tedja
Hello everybody, I am using these specificaitions: - Cocoon 2.1.4 for Unix - OS Sun 5.8 Solaris Sparc - Java 1.3.0.03 for Solaris - Jetty built-in servlet engine from Cocoon itself I got these 2 errors when I started the Cocoon to run on Jetty by executing cocoon.sh servlet: 1) Could not setup

Re: ResourceReader and charset information

2004-05-26 Thread Leszek Gawron
[EMAIL PROTECTED] wrote: How can I tell ResourceReader to put a certain charset in the http header? map:match pattern=*.css map:read type=resource src=resources/styles/{1}.css charset=utf-8 == This doesn't work. How can I get it? mime-type=text/css !-- option sitemap parameters

Re: Serializing XML to Excel (Re: Please give me a hand)

2004-05-26 Thread s . q . huang
I tried cocoon 2.1.5, but the result is same as 2.1.2. Thanks any way. SQ. Andreas Kuckartz [EMAIL PROTECTED] 2004-05-26 18:27 Please respond to users To: cc:[EMAIL PROTECTED] Subject:Serializing XML to Excel (Re: Please give me a hand) [EMAIL PROTECTED]

display a child form

2004-05-26 Thread Steve
Hi. Is there a method to to display a new form as a pop-up window, from a parent form.RegardsSteveJoin Excite! - http://www.excite.comThe most personalized portal on the Web!

Re: ResourceReader and charset information

2004-05-26 Thread [EMAIL PROTECTED]
Leszek Gawron wrote: Guessing it shoud be encoding=utf-8 instead of charset Doesn't work either:-( -- Volkmar W. Pogatzki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Different behavior when Cocoon is deployed as WAR archive

2004-05-26 Thread Willy Reinhardt
Hi, I am using: - Cocoon 2.1.4 - JBoss 3.2.3 - JDK 1.4.2_40 - Linux Suse I also test with - Cocoon 2.1.4 - WebLogic 8.1 - JDK 1.4.2_40 - Windows 2000 I work during development with cocoon as exploded directory under my application server. Now for testing environnement I create a war archive

SOAP help

2004-05-26 Thread Robert Onslow
Hi all. Can anyone help me. I need to (i) upload a file from a user, (ii) embed the file as base64 content in xml (iii) wrap the xml in a soap request (iv) submit the soap request to a web service and (v) transform the soap result for return to the user. What is the best strategy in Cocoon 2.1

uploading file in cocoon2.1.4

2004-05-26 Thread Madhavi Thottempudi
Hi there! I am trying to upload a zip file and save it somewhere on the hard-drive. I am using cocoon 2.1.4. Can anybody suggest me what is the best way to upload files in cocoon2.1.4 version. I am doing as shown below and I am not able to pick up the file. Don't know where I am going wrong.

Problem using processPipelineTo()

2004-05-26 Thread Suzan Foster
Consider the following FlowScript code: code-snippet form newFile(form) { !-- uninteresting form handling code -- ... if (form.getSubmitId() == new) { var uri = bean.name.replace(/\s/g, _).toLowerCase() + .xml; var file = folder.newFile(uri); var os = new

RE: uploading file in cocoon2.1.4

2004-05-26 Thread VENKATESAN, PADMANABAN (SBCSI)
Title: Message Check this out!!! I pulled the following class from web... import org.apache.cocoon.acting.AbstractAction; import org.apache.cocoon.servlet.multipart.Part; import org.apache.cocoon.environment.Context; import org.apache.cocoon.environment.ObjectModelHelper; import

Source Write Transformer changes Serializer

2004-05-26 Thread Jan Metzner
Hi all! we have/had a problem with the serialization inside the source write transformer. if you do not specify the serializer as parameter the transformer uses as default the xml transformer. After some requests the serializer changed from xml to html! Is this a caching problem? If you

XHTMLSerializer and empty 'xmlns' attributes

2004-05-26 Thread Matt Walter
Im using the following: FileGenerator - XSLTTransfomer - XHTMLSerializer Each time xsl:call-template is encountered, the Serializer places an empty xmlns attribute in the first tag it outputs, for example: div xmlns= id=bannerBlock All subsequent tags are fine until

Re: XHTMLSerializer and empty 'xmlns' attributes

2004-05-26 Thread [EMAIL PROTECTED]
Matt Walter wrote: I'm using the following: FileGenerator - XSLTTransfomer - XHTMLSerializer Each time xsl:call-template is encountered, the Serializer places an empty xmlns attribute in the first tag it outputs, for example: div xmlns= id=bannerBlock All subsequent tags are fine until

Cocoon 2.1.5 - javaflow problem

2004-05-26 Thread Enrico Migliore
hi guys, Cocoon 2.1.5 -- I modified the CalculatorFlow example and noticed that: 1. if Cocoon is restarded, CalculatorFlow.class is loaded and the java code executed. 1. if Cocoon is NOT restarded, CalculatorFlow.class is never reloaded and the java code is NOT executed. any

Adding a global validation message to a form?

2004-05-26 Thread Mark H
Can anybody tell me how I would add a global validation message to a form (cocoon forms) in version 2.1.5? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Cocoon 2.1.5 - javaflow problem (2)

2004-05-26 Thread Enrico Migliore
hi guys, Cocoon 2.1.5 -- I modified the CalculatorFlow example and noticed that: 1. if Cocoon is restarded, CalculatorFlow.class is loaded and the java code executed. 1. if Cocoon is NOT restarded, CalculatorFlow.class is never reloaded and the java code is NOT executed. any

Re: large xml's in cocoon

2004-05-26 Thread Anna Bikkina
I do not see any out of memory errors. It just results in a blank page. Not sure what it could be. I will change the java parameters and see how it works. By the way I am running cocoon in tomcat. So I should be changing java paramaters in startup.sh or catalina.sh in tomcat right? Thanks

Re: Adding a global validation message to a form?

2004-05-26 Thread Bruno Dumon
On Wed, 2004-05-26 at 18:51, Mark H wrote: Can anybody tell me how I would add a global validation message to a form (cocoon forms) in version 2.1.5? Are you looking for a feature you had in 2.1.4 and you don't find anymore? If so, what exactly? -- Bruno Dumon

Re: XHTMLSerializer and empty 'xmlns' attributes

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 18:09, Matt Walter wrote: I'm using the following: FileGenerator - XSLTTransfomer - XHTMLSerializer Each time xsl:call-template is encountered, the Serializer places an empty xmlns attribute in the first tag it outputs, for example: div xmlns= id=bannerBlock All subsequent tags are

Re: how to do form custom validators

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 09:33, Bruno Dumon wrote: But this is no longer the default way for doing simple field validation. It was really just only a javascript hack. Even for your business logic validation you can probably find better ways to handle it. No no, you can still do it that way! Just like

Re: imported stylesheets

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 07:56, Nanda wrote: Does cocoon 2.1.x automatically reload the stylesheets (both main and the ones imported in them) when they are modified? I remember there was a problem with Cocoon 1.8.2 where changes to imported stylesheets did not take effect until the stylesheets that import

RE: Adding a global validation message to a form?

2004-05-26 Thread Mark H
Are you looking for a feature you had in 2.1.4 and you don't find anymore? If so, what exactly? No, the reason I mentioned 2.1.5 is just to make clear what version of cocoon I'm using since cforms are still in development. Basically what I'm looking for is after some custom validation to be able

Re: flowscript and reloading - losing information

2004-05-26 Thread Joerg Heinicke
On 25.05.2004 11:00, Joose Vettenranta wrote: just noticed that if I reload a page which has got information from previous page, that information is lost. Like something like this: do { cocoon.sendPageAndWait (firstpage); firstname=cocoon.request.get (fname); }

Re: C2.1.5 - build.sh bug

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 00:32, Christopher Painter-Wakefield wrote: There is a bug in the build.sh build script. Sorry if this has been covered before; this is my first build of a 2.1.x system. The build.sh uses /bin/sh, which on Solaris and other traditional *nix is typically Bourne shell. The build.sh

Re: Please give me a hand

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 12:12, [EMAIL PROTECTED] wrote: In my sample output, It can show variable styles within one sheet, Please see attached xml output Excel file. But I found the styles can't be effective if I set the region's endRow = 10. ? gmr:Styles ? gmr:StyleRegion startCol=0 startRow=0

Re: ResourceReader and charset information

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 12:41, [EMAIL PROTECTED] wrote: How can I tell ResourceReader to put a certain charset in the http header? map:match pattern=*.css map:read type=resource src=resources/styles/{1}.css charset=utf-8 == This doesn't work. How can I get it? mime-type=text/css !--

Re: Cocoon initialisation error

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 13:26, [EMAIL PROTECTED] wrote: Hello everybody, I am using these specificaitions: - Cocoon 2.1.4 for Unix - OS Sun 5.8 Solaris Sparc - Java 1.3.0.03 for Solaris - Jetty built-in servlet engine from Cocoon itself I got these 2 errors when I started the Cocoon to run on Jetty by

Re: display a child form

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 14:10, Steve wrote: Hi. Is there a method to to display a new form as a pop-up window, from a parent form.RegardsSteve There is no native support in CForms. But it should be no problem managing this in the flow script. Joerg

Re: uploading file in cocoon2.1.4

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 16:47, Madhavi Thottempudi wrote: Hi there! I am trying to upload a zip file and save it somewhere on the hard-drive. I am using cocoon 2.1.4. Can anybody suggest me what is the best way to upload files in cocoon2.1.4 version. I am doing as shown below and I am not able to pick up

Re: Problem using processPipelineTo()

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 17:05, Suzan Foster wrote: Consider the following FlowScript code: code-snippet form newFile(form) { !-- uninteresting form handling code -- ... if (form.getSubmitId() == new) { var uri = bean.name.replace(/\s/g, _).toLowerCase() + .xml; var file =

RE: XHTMLSerializer and empty 'xmlns' attributes

2004-05-26 Thread Lars Huttar
From: Joerg Heinicke Sent: Wednesday, May 26, 2004 1:31 PM To: [EMAIL PROTECTED] Subject: Re: XHTMLSerializer and empty 'xmlns' attributes On 26.05.2004 18:09, Matt Walter wrote: I'm using the following: FileGenerator - XSLTTransfomer - XHTMLSerializer Each time

Retrieving session data from an action

2004-05-26 Thread Bruce Perryman
Hello, I have stored session data inside of a context using session:setxml. How can I access the data either from within a sitemap, or within an action which I've written? Which component or class can I use to retrieve from within either the sitemap or the action that I wrote? Thanks

Re: Cocoon 2.1.5 - javaflow problem (2)

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 19:00, Enrico Migliore wrote: Cocoon 2.1.5 -- I modified the CalculatorFlow example and noticed that: 1. if Cocoon is restarded, CalculatorFlow.class is loaded and the java code executed. 1. if Cocoon is NOT restarded, CalculatorFlow.class is never reloaded and the

Re: Adding a global validation message to a form?

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 22:06, Mark H wrote: Can anybody tell me how I would add a global validation message to a form (cocoon forms) in version 2.1.5? Basically what I'm looking for is after some custom validation to be able to add a validation message like your login details are incorrect to a form

Re: XHTMLSerializer and empty 'xmlns' attributes

2004-05-26 Thread Joerg Heinicke
On 26.05.2004 23:41, Lars Huttar wrote: You must fix your stylesheet. While the elements out of those named templates create elements in a default namespace (probably xhtml namespace), the named template don't do it, so the serializer must reset the default namespace.

Re: C2.1.5 - build.sh bug

2004-05-26 Thread David Crossley
Joerg Heinicke wrote: Christopher Painter-Wakefield wrote: There is a bug in the build.sh build script. Sorry if this has been covered before; this is my first build of a 2.1.x system. The build.sh uses /bin/sh, which on Solaris and other traditional *nix is typically Bourne shell.

Re: Including external .xconf file in cocoon.xconf

2004-05-26 Thread Alex Romayev
roy huang wrote: cocoon version=2.1 user-roles=/WEB-INF/yourrolefile.xconf That isn't correct. That is for including your own cocoon.roles file, which would otherwise need to be within the cocoon.jar file. What is the difference between roles.xconf and cocoon.xconf? There is not any, to

Re: C2.1.5 - build.sh bug

2004-05-26 Thread David Crossley
David Crossley wrote: Joerg Heinicke wrote: Christopher Painter-Wakefield wrote: There is a bug in the build.sh build script. Sorry if this has been covered before; this is my first build of a 2.1.x system. The build.sh uses /bin/sh, which on Solaris and other traditional *nix

using ODMG in Form definition

2004-05-26 Thread Johnson
Hi! I'm using ODMG to retrieve postgreSQL data, If I wrote the retrieve code in flow to retrieve data,it's ok. But I wrote the code into the widget on-value-changed,the system become unstable. it always show can't open the database com.. sometimes it's ok,but If I open another browser,the

Re: Cocoon 2.1.5 JCS store

2004-05-26 Thread Antonio Gallardo
David Luk dijo: Hi, I ran into trouble to configure cocoon 2.1.5 to use remote JCS server By default, the default store is an in-memory store backed by a disk store (based on JCS). This forms a two-stage cache composed of a fast in-memory MRU front-end and a persistent back-end which stores

RE: Cocoon 2.1.5 JCS store

2004-05-26 Thread David Luk
Hi Antonio, I have already played with default.ccf in cocoon 2.1.4 and I have left it unchanged, but it doesn't help, so I thought I might have missed something crucial in cocoon.xconf when upgrading to 2.1.5. The remote cache server is running and awaiting for connection. Appreciate your help.

Develop email application with Cocoon.

2004-05-26 Thread Oro smith
I have used Javamail API to develop an email application. Can i do the same using Cocoon ? Can i use Javamail API with Cocoon to develop the application or does Cocoon make use of some other API ? - Still single? Click here to find the

Re: Develop email application with Cocoon.

2004-05-26 Thread Antonio Gallardo
Oro smith dijo: I have used Javamail API to develop an email application. Can i do the same using Cocoon ? Can i use Javamail API with Cocoon to develop the application or does Cocoon make use of some other API ? You can use it. BTW, there is a mail block. Run cocoon and check the samples.