RE: Authentication Components

2003-10-14 Thread Wilson, Colin
I think it means that you CAN pass information there (like maybe a public key or something), but information from the person who is trying to get authenticated is passed like shown in the examples 'userid' and 'password': However I am having trouble using

RE: comments on cocoon docs: installing/updating page

2003-10-14 Thread Lars Huttar
Hello Joerg, Thanks for your responsiveness. > > 2) The same recommendation would be a good one for the sitemap: > > don't try to upgrade your old one; instead start with the new > > one. Why? There are many changes necessary to upgrading, > > beyond those listed in this document. I had to debug "

Re: Uploading fiiles: flow function

2003-10-14 Thread Geoff Howard
Josep Riudavets Aguilo wrote: Hi all ... I'm delevoping some code in Cocoon 2.1 in order to upload files. I have added these lines into my XSL page: Next, I have added this code into the sitemap.xmap: Now ... I have to write next function: var role = Packag

Re: What's "wrong" with use of the document() function in Cocoon?

2003-10-14 Thread Alexander Schatten
Tony Collen wrote: gerritjan wrote: Hello, Using the document() function for aggregation in Cocoon may break Separation of Concerns (SoC). That is, the designers of Cocoon view inclusion and transformation as different functions, best handled by separate Cocoon components. Treating them separ

Re: What's "wrong" with use of the document() function in Cocoon?

2003-10-14 Thread Javier del Gesu
* Tony Collen <[EMAIL PROTECTED]> [2003-10-14 20:53]: > gerritjan wrote: > > >Hello, > >Using the document() function for aggregation in Cocoon may break > >Separation of Concerns (SoC). That is, the designers of Cocoon view > >inclusion and transformation as different functions, best handled b

Re: comments on cocoon docs: installing/updating page

2003-10-14 Thread Joerg Heinicke
Hello Lars, to be "smart aleck" I quote the first sentence of this document: " Please take your time to read this document *completely* before trying to upgrade from a Cocoon 2.0.x installation to 2.1 (or above). ;-P But of course the documentation (and as especially if it is only one page) sh

Re: newbie: editing simple-page2fo.xsl file for sql queries

2003-10-14 Thread Joerg Heinicke
I don't know where the sql:strength comes from, but the general hint remains: add an additional sqlTransformerOutput2simple-page stylesheet as a intermediate step. So you can reuse the default simple-page stylesheets as they are. Imagine different output formats, the intermediate step simplifie

Generating a FormValidatorAction descriptor

2003-10-14 Thread Ralph Goers
My website supports several thousand urls. Each url has the same sitemap but has a different look and feel. I believe all the forms handling can be done with the FormValidatorAction however I want to generate the descriptor so that it is unique to each url. However, each website will be inheritin

Re: comments on cocoon docs: installing/updating page

2003-10-14 Thread Tony Collen
Lars Huttar wrote: [snip] I hope these changes can save others some time and effort as they upgrade. Lars, Thanks for the suggestions-- I'll take a look at them when I have some time. In the future, please do not hesitate to file a bug in bugzilla against the documentation, or even submit a p

Re: What's "wrong" with use of the document() function in Cocoon?

2003-10-14 Thread Tony Collen
gerritjan wrote: Hello, Using the document() function for aggregation in Cocoon may break Separation of Concerns (SoC). That is, the designers of Cocoon view inclusion and transformation as different functions, best handled by separate Cocoon components. Treating them separately allows you to

What's "wrong" with use of the document() function in Cocoon?

2003-10-14 Thread gerritjan
Hello, Using the document() function for aggregation in Cocoon may break Separation of Concerns (SoC). That is, the designers of Cocoon view inclusion and transformation as different functions, best handled by separate Cocoon components. Treating them separately allows you to achieve performance g

comments on cocoon docs: installing/updating page

2003-10-14 Thread Lars Huttar
On the doc page http://cocoon.apache.org/2.1/installing/updating.html#Pipelines+configuration+in+the+sitemap The "Pipelines configuration..." paragraph says, 'To update your installation, you have to remove the "event-pipeline" and "stream-pipeline" section from your cocoon.xconf and add the map:p

Suppressing XSLT stack trace in log file from xsl:message?

2003-10-14 Thread Andrzej Jan Taramina
I have a bunch of xsl transforms that use tags to write tracing output. I noticed that the latest version of Cocoon seems to not only write the text of the message, but dumps the full java stack trace to the log file also. Any way to suppress the stack trace? Thanks! Andrzej Jan Taramina Cha

Re: I am also having problems with logicsheets

2003-10-14 Thread Christopher Painter-Wakefield
Interesting. I created a test logicsheet with these same templates and namespace, had no problems (using C2.0.4). Have you looked in your logs to see if there are any errors in transformation? Could you provide a full sample of a non-working XSP page and your logicsheet? -Christopher |-

should I use-store in XSLTPRocessorImpl component options?

2003-10-14 Thread Lars Huttar
The snippet at http://cocoon.apache.org/2.1/snippet/snippet-xslt-options.html talks about "Specifying Different XSLT Processor Options", but I can't find an explanation of what the parameter "use-store" should be used for. The Cocoon API (http://cocoon.apache.org/2.0/apidocs/org/apache/cocoon/comp

Re: I am also having problems with logicsheets

2003-10-14 Thread pogietb
The original logicsheet did in fact do something: some database esql calls here But when I ran into problems I changed it to: Changing it to: has no impact. Still doesn't work. Pogie Christopher Painter-Wakefield <[EMAIL PROTECTED]> wrote: > > > > >Yes, I agree.  Th

Re: I am also having problems with logicsheets

2003-10-14 Thread Christopher Painter-Wakefield
Yes, I agree. The docs provide a template very similar in the "Standard Templates". Probably the docs should be updated to reflect the existence of logicsheets-util.xsl. -Christopher |-+--> | | Christian Haul | |

Re: I am also having problems with logicsheets

2003-10-14 Thread Christian Haul
On 14.Oct.2003 -- 12:18 PM, Christopher Painter-Wakefield wrote: > A logicsheet that really does nothing at all would contain at least one > template, e.g.: > > > better I recommend using the logicsheets-util.xsl in every logicsheet which includes this template together w

[HELP]Problem with using EXSLT in Cocoon 2.1

2003-10-14 Thread Princeton PPP
Hello, I am using Cocoon 2.1 on GNU/Linux RedHat 9. I want to use some of the EXSLT functions offered by XALAN 2.5.1, but I get the following error when trying to use set:distinct: Description:org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.RuntimeE

RE: Authentication Components

2003-10-14 Thread Ralph Goers
Thanks, Carsten. Is there an example of accessing the user data somewhere? Is the information about the user obtained from the handler resource? Some other things I am unclear on: The doc says the authentication resource can be a Java class. How is that done? The last sentence in section 3.3

Re: I am also having problems with logicsheets

2003-10-14 Thread Christopher Painter-Wakefield
Remember that your logicsheet is just an XSLT stylesheet that transforms an XSP program into another XSP program. You need at least one template, to copy the xsp elements from your source XSP program. Do you have any templates? If not, then your logicsheet isn't really doing "nothing at all"

Documentation typo on installing/updating page?

2003-10-14 Thread Lars Huttar
http://cocoon.apache.org/2.1/installing/updating.html#Updating+Cocoon The first paragraph says (note the version numbers) "Please take your time to read this document completely before trying to upgrade from a Cocoon 2.0.x installation to 2.1 (or above)." So these are instructions for upgrading f

I am also having problems with logicsheets

2003-10-14 Thread pogietb
Cocoon finds the logicsheet but if I include the namespace in the xsp Cocoon creates an empty .java file and, not surprisingly, doesn't compile a class file. My cocoon.xconf has: http://ts.org"/> My xsp has: http://apache.org/xsp"; xmlns:ts="http://ts.org"; xmlns:esql="http://apache.o

RT: RE: Conditional processing in XSLT

2003-10-14 Thread Josep Riudavets Aguilo
Thanks a lot Lars ... it works perfectly !!! And sorry ... I'm not suscribed to XSL list, but now, I'm going to do it ... --> Missatge original de Lars Huttar per a [EMAIL PROTECTED] enviat el 13/10/2003 19:27:58 Hi, I think this is more a question for the XSL-list, but anyway... You want so

Uploading fiiles: flow function

2003-10-14 Thread Josep Riudavets Aguilo
Hi all ... I'm delevoping some code in Cocoon 2.1 in order to upload files. I have added these lines into my XSL page: Next, I have added this code into the sitemap.xmap: Now ... I have to write next function: var role = Packages.org.mystuff.UploadManager.

Re: Problems with logicsheets

2003-10-14 Thread Christopher Painter-Wakefield
It sounds as if Cocoon can't find your logicsheet. Where does it live? >From your href parameter, I assume it is in the root directory of your context. Try using a relative file path instead of a context: URL, e.g., Unless things have changed, a file path is better anyway, as it will allow

caching with the cocoon:/ protocol

2003-10-14 Thread Meyer, Christian
Hi, I have a pipeline which generates a xsp page from a XML. My problem is that the generated xsp page is not cached by the cocoon caching mechanism. But I cant find the problem, because the time of the cocoonresource is constant and this ressource is still cached. But the serverpages generator is

Re: Setting up binding in an Action in Woody

2003-10-14 Thread Antonio Gallardo
Mark H dijo: > I'm trying to get Woody working with JDO in an action but I'm not sure > of the code to setup the binding, I've looked at the code in woody2.js > and made an attempt to do it in Java but I get a ClassCastException at > line * below. Anybody got code for this? Yep. Take a look at the

Re: choose a random image

2003-10-14 Thread Jon Evans
Carsten Ziegeler wrote: If you want to make a redirect, you can't use the a pipeline for it because a redirect is not allowed after the pipeline (generator) has started. Are you sure? This works: (well, it's not random, but the redirect works). :-) Jon ---

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Upayavira wrote: Andreas Hartmann wrote: [...] Yes, but I think it should be possible to select the max number dynamically, depending on the number of images that are located in the directory. Fair enough. Surely it shouldn't be hard to extend the random input module to be able to handle {ran

Re: Setting up binding in an Action in Woody

2003-10-14 Thread Bruno Dumon
On Tue, 2003-10-14 at 14:42, Mark H wrote: > I'm trying to get Woody working with JDO in an action but I'm not sure of > the code to setup the binding, I've looked at the code in woody2.js and made > an attempt to do it in Java but I get a ClassCastException at line * below. > Anybody got code for

Re: choose a random image

2003-10-14 Thread Upayavira
Andreas Hartmann wrote: Upayavira wrote: Andreas Hartmann wrote: The min and max random number values would be configured in cocoon.xconf. That's the problem then, how do you keep track of a variable number of images? OK, this is a problem. No it's not. You just define the input module

RE: choose a random image

2003-10-14 Thread Reinhard Poetz
From: news [mailto:[EMAIL PROTECTED] > Upayavira wrote: > > Andreas Hartmann wrote: > > > >> > The min and max random number values would be configured in > cocoon.xconf. > >>> > >>> > >>> > >>> That's the problem then, how do you keep track of a > variable number > >>> of images? >

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Upayavira wrote: Andreas Hartmann wrote: The min and max random number values would be configured in cocoon.xconf. That's the problem then, how do you keep track of a variable number of images? OK, this is a problem. No it's not. You just define the input module as many times as you need with

Re: choose a random image

2003-10-14 Thread Upayavira
Andreas Hartmann wrote: The min and max random number values would be configured in cocoon.xconf. That's the problem then, how do you keep track of a variable number of images? OK, this is a problem. No it's not. You just define the input module as many times as you need with different name

Setting up binding in an Action in Woody

2003-10-14 Thread Mark H
I'm trying to get Woody working with JDO in an action but I'm not sure of the code to setup the binding, I've looked at the code in woody2.js and made an attempt to do it in Java but I get a ClassCastException at line * below. Anybody got code for this? Thanks, Mark Binding binding=getBinding(aBi

Re: Cocoon / Eclipse

2003-10-14 Thread Flavio Costa
Just to inform I found out that my problem reported on the message below was due to the paths. I've defined Cocoon distribution dir (where I unpacked it) as the project path in Eclipse and "/build/webapp" as the web application root. However, in order to work, the project path should be set direct

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Bertrand Delacretaz wrote: [...] Damn - how does one keep track of all what we have in here, I missed that one ;-) :) I saw it accidentally when I browsed the input modules. I think you don't even need the redirect, this should work with map:read as well, shouldn't it? Yes, of course ...

Re: choose a random image

2003-10-14 Thread Bertrand Delacretaz
Le Mardi, 14 oct 2003, à 13:59 Europe/Zurich, Andreas Hartmann a écrit : ...Sorry for my short answer, I imagine something like Damn - how does one keep track of all what we have in here, I missed that one ;-) I think you don't even need the redirect, this should work with map:read as well

session expires to few days

2003-10-14 Thread Joose Vettenranta
Hey, how do I change session to expire after a long while, let's say 5days? Or infinite? Thanks, Joose -- Joose Vettenranta <[EMAIL PROTECTED]> GSM: 044 561 0270 * Always remember that you are unique. Just like everyone else.* ---

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Andreas Hartmann wrote: Bertrand Delacretaz wrote: Le Mardi, 14 oct 2003, à 13:34 Europe/Zurich, Jon Evans a écrit : ...I can use a directory generator to give me a list of images, but I don't know how to transform that list in order to select one of them at random. [...] What about the Rando

Re: choose a random image

2003-10-14 Thread Andreas Hartmann
Bertrand Delacretaz wrote: Le Mardi, 14 oct 2003, à 13:34 Europe/Zurich, Jon Evans a écrit : ...I can use a directory generator to give me a list of images, but I don't know how to transform that list in order to select one of them at random. The easiest thing that comes to mind is an XSLT tr

RE: choose a random image

2003-10-14 Thread Carsten Ziegeler
Bertrand Delacretaz wrote: > > Le Mardi, 14 oct 2003, à 13:34 Europe/Zurich, Jon Evans a écrit : > > > ...I can use a directory generator to give me a list of images, but I > > don't know how to transform that list in order to select one of them > > at random. > > The easiest thing that comes to mi

Re: newbie: editing simple-page2fo.xsl file for sql queries

2003-10-14 Thread Ashish Kumar
hi there, thanx for ur response, i have made following entries in the pipeline (file sitemap.xmap): - - and following is the entry in xml file: - http://apache.org/cocoon/SQL/2.0";>

Re: choose a random image

2003-10-14 Thread Bertrand Delacretaz
Le Mardi, 14 oct 2003, à 13:34 Europe/Zurich, Jon Evans a écrit : ...I can use a directory generator to give me a list of images, but I don't know how to transform that list in order to select one of them at random. The easiest thing that comes to mind is an XSLT transform, using java extension

choose a random image

2003-10-14 Thread Jon Evans
Hi, I have a directory images/random which contains (at the moment) 10 images. What I want to do is have the browser request http://example.com/random-image, and have cocoon do a redirect to http://example.com/images/random/image3.jpg (for example). I thought a redirect would probably be bette

RE: Flowscript with JXTemplate error: ...fom_system.js", line 5: The undefined value has no properties.

2003-10-14 Thread Reinhard Poetz
From: Ugo Cei > Reinhard Poetz wrote: > > cocoon.sendPageAndWait("test.jxt" {} ); > > I think there's a comma missing here: ---^ Thanks for spotting this! Of course the arguments need to be separated with a comma. Reinhard -

Re: File Upload With Action

2003-10-14 Thread Stefan Klein
Hi Johannes, take a look at the following bit of code. I use the FilePartArray rather than the FilePart. FilePartArray is a byte array holding the file contents in memory rather than a reference to a file already stored on disc, i.e. the file is not saved automatically and the data will be lost

Re: Flowscript with JXTemplate error: ...fom_system.js", line 5: The undefined value has no properties.

2003-10-14 Thread Ugo Cei
Reinhard Poetz wrote: cocoon.sendPageAndWait("test.jxt" {} ); I think there's a comma missing here: ---^ Ugo -- Ugo Cei - Consorzio di Bioingegneria e Informatica Medica P.le Volontari del Sangue, 2 - 27100 Pavia - Italy Phone: +39.0382.525100 - E-mail: [EMAIL PROTECTED] --

Re: PreparedStatement

2003-10-14 Thread Christian Haul
On 14.Oct.2003 -- 10:15 AM, Geert Van Damme wrote: > > Hi all, > > The docs say a prepared statement is created whenever a tag > appears in the query. If I use this tag in a nested query (not a subquery in sql but > a nested query in XSP), will the same prepared statement be used for every ite

PreparedStatement

2003-10-14 Thread Geert Van Damme
Hi all, The docs say a prepared statement is created whenever a tag appears in the query. If I use this tag in a nested query (not a subquery in sql but a nested query in XSP), will the same prepared statement be used for every iteration or will the esql:parameter tag create a new prepared st

RE: Error when starting Tomcat 4.1.24 with Cocoon 2.1.2

2003-10-14 Thread Stephanie Zohner
No I don't actually I haven't tried much, because Cocoon is still running. However the problem is known among the community and therefore I guess that the necessary changes will be done soon. Regards, Stephanie See also > Hi Stephanie, > > Do you know exactly what to update in WEB-INF/deli co

Problems with logicsheets

2003-10-14 Thread list40
Hello all, I am a relative newbie to Cocoon, so please for a bit of understanding;) I'm encountering problems with adding logicsheets to my project. If I use the option with -tag in cocoon.xconf: http://cxa/logicsheet"/> then when I want to view the xsp-page I get an error: "org.apache.co

Re: Custom DB-Generator crashes

2003-10-14 Thread Frank Taffelt
it think you have to close your db connection. hth, Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Error when starting Tomcat 4.1.24 with Cocoon 2.1.2

2003-10-14 Thread Sylvain.Thevoz
Hi Stephanie, Do you know exactly what to update in WEB-INF/deli configuration? Thanks Regards Sylvain -Message d'origine- De: Stephanie Zohner [mailto:[EMAIL PROTECTED] Date: lundi, 13. octobre 2003 16:21 À: [EMAIL PROTECTED] Objet: Re: Error when starting Tomcat 4.1.24 with Cocoon 2.1.