Re: NEWBIE: Cannot connect to MySQL db

2003-10-07 Thread [EMAIL PROTECTED]
Joe Williams wrote: When using an XSP to connect to a MySQL database, I get an error, according to my WEB-INF/log/error.log: Could not get the datasource org.apache.avalon.excalibur.datasource.NoValidConnectionException No valid JdbcConnection class available at

Form Submission

2003-10-07 Thread Agent B
Hi all, I am presently working on a project which has a lot of interaction with users through use for HTML forms. I am faces with a problem already solved in Jakarta's Struts where a form submission can be protected against a rupture in the normal control flow sequence ie. when the user clicks on

Cocoon / Eclipse

2003-10-07 Thread Flavio Costa
Hello, I'm new to this list. I've been using Cocoon from 2.0.4 version as a .war file, and now I'm trying to debug Cocoon 2.1.1 using Eclipse 2.1.1 and Tomcat 4.1.18, so I could learn more about Cocoon internals. Cocoon is running well if I type cocoon servlet and navigate to

Re: Form Submission

2003-10-07 Thread Flavio Costa
I am presently working on a project which has a lot of interaction with users through use for HTML forms. Hi Zeus, the solution you're looking for is a design pattern called Synchronizer Token. There is an article on the web explaining it, including a brief code snippet:

Sendmail attachment

2003-10-07 Thread Josep Riudavets
Hi... I'm using sendmail taglibs ... and I want to attach a file placed into "/usr/local/tomcat/webapps/cocoon/fitxers/CADi.pfd" What the correct syntax for the sendmail:attachment taglib? Thanks

Can't get form POST working

2003-10-07 Thread Peter Paulus
Hello all, We're using Cocoon 2.1 in combination with Slide. I can't get a POST from a form to work. We're trying to post a form that should alter one of the DAV: properties in Slide. I can see the request come in the core.log: DEBUG (2003-10-07) 13:12.38:681 [core]

Flowscript problem using function in form.sendView()

2003-10-07 Thread Markus Heussen
Hi all! I'm new to Flowscript (2.1.2) and I have some problems using the jxforms functionality. I modified the jxforms samples delivered with Cocoon and get NullPointerExceptions always after the second wrong value. I need to use a custom function keyIsValid which does some decoding and checkings

Re: outputing parameters in XSP

2003-10-07 Thread Christian Haul
Gell, Ashley wrote: I am using Cocoon 2.1.1 As illustrated by the sample pipeline below, I have a navigate action which determines, among other things, the buttons to be displayed on the page. The current page is passed into the navigate action, which is used to determine and return the

How to dynamically select a stylesheet for xslt transform?

2003-10-07 Thread Andrzej Jan Taramina
Could use some pointers on this: I have an action that sets a map parameter, my-stylesheet to be the filename of the stylesheet I want to later use for a transform. What I want to do is something like: map:act type=my-action map:transform type=xslt

RE: How to dynamically select a stylesheet for xslt transform?

2003-10-07 Thread Gell, Ashley
Title: RE: How to dynamically select a stylesheet for xslt transform? You should be able to do this. I have managed to achieve this although I am using an XSP action is the pipeline below shows (the 'buttons' parameter is returned by the navigate.xsp action): map:match pattern=*/*.xsp

RE: Value substitution within auth-protect

2003-10-07 Thread Ralph Goers
Your version is looking for values returned from the action. Try this: map:match pattern=admin-*-*.html map:act type=auth-protect map:parameter name=handler value=adminHandler/ map:parameter name=application value=adminApp/ map:generate src=content/admin-{../1}-{../2}.xml /

Pipeline execution nonsequential?

2003-10-07 Thread Chris Wilder-Smith
Hi, I've got a requirement that I thought could be filled very easily by a custom action. Basically I need to set some request parameters and some sitemap parameters before the transformers start to transform, but after the generator. So, I've got a sitemap snippet that looks like this:

Re: NEWBIE: Cannot connect to MySQL db

2003-10-07 Thread Roger I Martin PhD
Hi Joe, Everything you show for the cocoon.xconf and web.xml is the same as what I'm using except for the ?autoReconnect=true which looks ok. Run a table of contents on the mysql-connector-java-3.0.8-stable-bin.jar? (verifies the com.mysql.jdbc.Driver or org.gjt.mm.mysql.Driver to be used)

RE: Pipeline execution nonsequential?

2003-10-07 Thread Francis Vermeulen
Hi Chris, the behaviour that you observe is intended Cocoon behaviour. The sitemap will always execute actions in a sitemap definition first and depending on what the action returns, execute or not the enclosed sitemap items: if the action returns a non-null object, the enclosed items (typically

Re: NEWBIE: Cannot connect to MySQL db

2003-10-07 Thread Roger I Martin PhD
There are different tools but the jar executable can do it for you jar -tvf mysql-connector-java-3.0.8-stable-bin.jar If it scrolls off the screen you can send it to a file: jar -tvf mysql-connector-java-3.0.8-stable-bin.jar toc.txt - Original Message - From: Joe Williams [EMAIL

Tranformation of a session´s parameter

2003-10-07 Thread [EMAIL PROTECTED]
I have installed Cocoon 2.2.1 and tomcat 4.1.27 running under jdk1.4. I´ve got a question about what should i do to transform a XML parameter that I´ve obtained from an action and that I´m trying to tranform. map:match pattern=acceso map:act type=session / map:act type=login

Tranformation of a session´s parameter

2003-10-07 Thread [EMAIL PROTECTED]
I have installed Cocoon 2.2.1 and tomcat 4.1.27 running under jdk1.4. I´ve got a question about what should i do to transform a XML parameter that I´ve obtained from an action and that I´m trying to tranform. map:match pattern=acceso map:act type=session / map:act type=login

woody block: Failed to execute pipeline.: java.util.EmptyStackException

2003-10-07 Thread Carlos Chávez
Hi to all, i'm working with woody, i'm using WoodyTemplateTransformer, when the first time i execute one form this work fine, validation is ok etc, but the second time i execute other diferent form and i try to submit this form this is the message is show me and every form is execute after

Re: Pipeline execution nonsequential?

2003-10-07 Thread Geoff Howard
Chris Wilder-Smith wrote: Hi, I've got a requirement that I thought could be filled very easily by a custom action. Basically I need to set some request parameters and some sitemap parameters before the transformers start to transform, but after the generator. So, I've got a sitemap snippet

woody block: Failed to execute pipeline.: java.util.EmptyStackException

2003-10-07 Thread Carlos Chávez
Hi to all, i'm working with woody, i'm using WoodyTemplateTransformer, when the first time i execute one form this work fine, validation is ok etc, but the second time i execute other diferent form and i try to submit this form this is the message is show me and every form is execute

org.apache.cocoon.ProcessingException: java.lang.NullPointerException

2003-10-07 Thread Shane McEneaney
Hi there, I am using Cocoon 2.0.4 with Tomcat 4.0.3 on Windows 2000. Since I've started using Tomcat as a service I am encountering errors on large XSP files ONLY when they are first loaded. On the second attempt at requesting the same page it's fine.I have included the error that appears in the

Re: Cocoon 1.8.2

2003-10-07 Thread Andrzej Jan Taramina
Getting an error message Publishing Engine could not be initialized. java.lang.RuntimeException: Error loading logicsheet at resource://org/apache/cocoon/processor/xsp/library/java/util.xsl due to java.lang.Exception: Resource not found or retrieving error. Any thoughts Umupgrade

Re: Tranformation of a session´s parameter

2003-10-07 Thread Andrzej Jan Taramina
Y: I have installed Cocoon 2.2.1 and tomcat 4.1.27 running under jdk1.4. I´ve got a question about what should i do to transform a XML parameter that I´ve obtained from an action and that I´m trying to tranform. map:match pattern=acceso map:act type=session / map:act

RE: Cocoon 1.8.2

2003-10-07 Thread Diodato, Anthony
um.. Thanks for the help. I actually have fixed this problem. My new problem is this. Publishing Engine could not be initialized. java.lang.RuntimeException: Error creating org.apache.cocoon.processor.xsp.XSPProcessor: make sure the needed classes can be found in the classpath

French characters within xsp:logic

2003-10-07 Thread Yves Vindevogel
Hi I have this piece of code in XSP xsp:logic String sWelcome = ; String sAbout = ; if (xsp-session:get-attribute name=lang/.equals(Nl)) {

Re: French characters within xsp:logic

2003-10-07 Thread gounis
what is the encoding you use in your (final) html page? i guess that the content is coming to you in UTF and you try to display it using a different encoding i use to have similar problem when post data from an xsp--html first of all try to set everything in UTF -- stavros On Wed, 8 Oct

RE: Cocoon 1.8.2

2003-10-07 Thread Martin Samm
sound the answer to this in the archives. In the file cocoon.properties your project is using, change the lines (starting around line 163) processor.xsp.logicsheet.X.java = resource://path/to/a/file.xsl Change the 'resource://path...' to 'file://...' Extract the various XSL files