CForms -Bind to 2 Separate Sources

2005-03-02 Thread Peter Sparkes
Hi, Help please I wish to bind to a XML file to generate a form and then send the data in the completed form to a database without updating the original XML file. I can't work out how to extract the data from the completed form so that I can update the database. Thanks Peter Sparkes

Re: Forms builder

2005-03-02 Thread Derek Hohls
Which one is it?? According to their website, there are only plugins for: * Cocoon Assistant : This plugin helps you to create and organize your Cocoon project inside the Eclipse platform. * Cocoon Sitemap Editor : This plugins helps you to edit the Cocoon sitemap. * Server Assistant : This

Re: parsing xml code [converting escaped tags?]

2005-03-02 Thread Derek Hohls
Vlad This is more about how to write out escaped tags rather than actually converting them to valid XML. Derek [EMAIL PROTECTED] 2005/03/01 08:10:26 AM I have found something similar: http://www.dpawson.co.uk/xsl/sect2/N2215.html Does anybody tried it to solve our problem? Derek Hohls

Re: Forms builder

2005-03-02 Thread Jorg Heymans
Derek Hohls wrote: Which one is it?? According to their website, there are only plugins for: * Cocoon Assistant : This plugin helps you to create and organize your Cocoon project inside the Eclipse platform. * Cocoon Sitemap Editor : This plugins helps you to edit the Cocoon sitemap. * Server

Re: Forms builder

2005-03-02 Thread Sylvain Wallez
Jorg Heymans wrote: Derek Hohls wrote: Which one is it?? According to their website, there are only plugins for: * Cocoon Assistant : This plugin helps you to create and organize your Cocoon project inside the Eclipse platform. * Cocoon Sitemap Editor : This plugins helps you to edit the Cocoon

[YAY] (was Re: Forms builder)

2005-03-02 Thread Jorg Heymans
I can't believe i missed your post on this !! quote Now about the business/community issue, I understand your concern. Cocoon would be much more appealing to IT managers if it had some opensource tooling. At least the basic tooling. For this reason and also some others, we, Anyware Technologies,

i18n transformer problems

2005-03-02 Thread Gunter D'Hondt
Hi, I've got the following transformer-configuration: map:transformer name=i18n src=org.apache.cocoon.transformation.I18nTransformer catalogues default=mysystem catalogue id=mysystem name=textmessages location=context://config/ catalogue id=woody

Re: Using patterns for map:act elements ??

2005-03-02 Thread Eric Shannon
The projects is using Cocoon 2.1.5.1. This implementation is something I am currently inheriting. I had used Cocoon 2.0.x some time ago, so their action based approach didn't strike me as too off the wall. It is quite the mess to manage though. What is the common approach to solving this?

Re: Using patterns for map:act elements ??

2005-03-02 Thread Jorg Heymans
Eric Shannon wrote: The projects is using Cocoon 2.1.5.1. This implementation is something I am currently inheriting. I had used Cocoon 2.0.x some time ago, so their action based approach didn't strike me as too off the wall. It is quite the mess to manage though. What is the common

JSPReader

2005-03-02 Thread Charles Abell
This must be obvious. I'm calling a jsp from an xsp - which works fine using JSPReader. Is there a way of associating the session created by the xsp with the jsp ? I call it with Form Action=xx.jsp etc, but I think that JSPReader doesn't take parameters

RE: include specific element with cinclude

2005-03-02 Thread Schultz, Gary - COMM
I will add it. It was someone else's idea so I didn't want to step on any toes. Thought I'd check first. -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 02, 2005 12:46 AM To: users@cocoon.apache.org Subject: RE: include specific element with cinclude

Attempted to process incomplete pipeline error?

2005-03-02 Thread Mark Lundquist
Hi all, Using 2.1.6... I have something like: match pattern=**> generate src=cocoon:/content/{1} /> . . (etc) . match pattern=content/**> select type=resource-exists> . . (blah blah blah) . when test=something> redirect-to uri=somewhere global=true> The redirect is _external_ (not

Re: Alternative methods of accessing current WebContinuation?

2005-03-02 Thread Mark Lundquist
Hi Daniel, On Mar 1, 2005, at 2:13 PM, Daniel McOrmond wrote: I was thinking of something along the lines of an Input Module, perhaps even using XModuleSource. See the flow-continuation InputModule. cheers, ml - To unsubscribe,

RE: XSP and parameters

2005-03-02 Thread Andreas Busch
Thank's a lot for the example but I can't get it work My test: Test.xsp xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:input=http://apache.org/cocoon/xsp/input/1.0;

RE: XSP and parameters

2005-03-02 Thread Gawde, Kiran
Note the tag. It should be: Test.xsp xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:input=http://apache.org/cocoon/xsp/input/1.0;

Re: Alternative methods of accessing current WebContinuation?

2005-03-02 Thread Daniel McOrmond
Cool! Thanks Mark. That's exactly what I was looking for. -Daniel On Wed, 2 Mar 2005 08:30:46 -0800, Mark Lundquist [EMAIL PROTECTED] wrote: Hi Daniel, On Mar 1, 2005, at 2:13 PM, Daniel McOrmond wrote: I was thinking of something along the lines of an Input Module, perhaps even using

RE: Using patterns for map:act elements ??

2005-03-02 Thread Gawde, Kiran
Not sure, but you may be able to use XSP actions. map:match pattern=*.do map:act type=xsp-action src=action/{1}.xsp /map:act ... /map:match -Kiran (Object Edge Inc) -Original Message- From: Eric Shannon [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 2:30

RE: parsing xml code

2005-03-02 Thread Gawde, Kiran
You may want to apply two transforms first doing following: xsl:template match=pcomponentobjectOut xsl:value-of select=. disable-output-escaping=yes/ /xsl:template And the second as it is given in the previous email. -Kiran (Object Edge Inc) -Original Message- From: news

RE: XSP and parameters

2005-03-02 Thread Alfred Nathaniel
On Wed, 2005-03-02 at 17:48, Gawde, Kiran wrote: Note the tag. It should be: Test.xsp xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0; xmlns:input=http://apache.org/cocoon/xsp/input/1.0;

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Daniel McOrmond
Mark, I can help by answering question 2. There was indeed some 'bugage' related to redirecting that was fixed in the 2.1.6 release. http://issues.apache.org/bugzilla/show_bug.cgi?id=26854 -Daniel On Wed, 2 Mar 2005 08:22:58 -0800, Mark Lundquist [EMAIL PROTECTED] wrote: Question 2:...

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Lars Huttar
Mark Lundquist wrote: Hi all, Using 2.1.6... I have something like: match pattern=** generate src=cocoon:/content/{1} / . . (etc) . match pattern=content/** select type=resource-exists . . (blah blah blah) . when test=something redirect-to uri=somewhere global=true The redirect is _external_

Re: CForms -Bind to 2 Separate Sources

2005-03-02 Thread Mark Lundquist
Hi Peter, On Mar 2, 2005, at 12:19 AM, Peter Sparkes wrote: Hi, Help please I wish to bind to a XML file to generate a form and then send the data in the completed form to a database without updating the original XML file. I can't work out how to extract the data from the completed form so that

Re: [YAY] (was Re: Forms builder)

2005-03-02 Thread Sylvain Wallez
Jorg Heymans wrote: This is some awesomely amazingly good news I won't jump conclusions but you didn't make it too difficult to read between the lines there :) Really? Oh, you're very smart ;-P Sylvain -- Sylvain Wallez Anyware Technologies

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Mark Lundquist
On Mar 2, 2005, at 9:39 AM, Lars Huttar wrote: Question 1: How do I get rid of this error? Did you try putting a map:serialize / after the redirect-to? hmm, well... I don't think that would be right! :-) There's no SAX stream to serialize. (And if there were one at this point in the pipeline

Re: [YAY] (was Re: Forms builder)

2005-03-02 Thread Antonio Gallardo
On Mie, 2 de Marzo de 2005, 9:01, Sylvain Wallez dijo: Jorg Heymans wrote: This is some awesomely amazingly good news I won't jump conclusions but you didn't make it too difficult to read between the lines there :) Really? Oh, you're very smart ;-P /me crossing fingers ;-) Best

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Daniel McOrmond
You're right in that there's no SAX events to serialize. However, I wonder if adding a serializer would quiet Cocoon's complaints of an incomplete pipeline? I believe that's what Lars was getting at. Of course, the real solution to your problem is to do all your redirecting from flowscript. ;)

Re: Attempted to process incomplete pipeline error?

2005-03-02 Thread Geert Josten
You're right in that there's no SAX events to serialize. However, I wonder if adding a serializer would quiet Cocoon's complaints of an incomplete pipeline? I believe that's what Lars was getting at. No, the sitemap parser will complain that it is not legal to combine a redirect-to with a

RE: XSP and parameters

2005-03-02 Thread Carlos =?iso-8859-1?Q?Ch=E1vez?=
Andreas Busch Escribio :-) Thank's a lot for the example but I can't get it work My test: Test.xsp xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0;

RE: XSP and parameters

2005-03-02 Thread Carlos =?iso-8859-1?Q?Ch=E1vez?=
Carlos Chávez Escribio :-) Andreas Busch Escribio :-) Thank's a lot for the example but I can't get it work My test: Test.xsp xsp:page language=java xmlns:esql=http://apache.org/cocoon/SQL/v2; xmlns:xsp=http://apache.org/xsp; xmlns:util=http://apache.org/xsp/util/2.0;

[repost] Problem with flow-based authentication

2005-03-02 Thread Adam Ratcliffe
I've been re-implementing some code to use the flow functions in place of actions for authentication and have run into a problem with redirecting vs invoking an internal pipeline once the user has successfully logged in. I have a protected pipeline declared in my sitemap: map:match

Re: writing PDF file to filesystem

2005-03-02 Thread Mark Lundquist
On Feb 24, 2005, at 4:53 AM, Aurlien DEHAY wrote: I _think_ you can do it with flowscript, using processPipelineTo (see doc http://cocoon.apache.org/2.1/userdocs/flow/api.html#Cocoon+Object ). That's right, you can... that's how I've always done it. cheers, ml

Re: [YAY] (was Re: Forms builder)

2005-03-02 Thread Jorg Heymans
Sylvain Wallez wrote: Jorg Heymans wrote: This is some awesomely amazingly good news I won't jump conclusions but you didn't make it too difficult to read between the lines there :) Really? Oh, you're very smart ;-P sure am :) Just use big enough caps when announcing it so i won't miss

Re: CForms -Bind to 2 Separate Sources

2005-03-02 Thread Jorg Heymans
Have a look at [1], more specifically the direction attribute. In your binding, you can specify where the data should be loaded from and where the data should be saved to. So you load from your XML and you save to a different bean that you then persist. Should be fairly straightforward I

SOAPHelper

2005-03-02 Thread Gawde, Kiran
A suggestion for dev team: The SOAPHelper.java retrieves entire webservice respose and then returns XScriptObjectInlineXML. String ret = method.getResponseBodyAsString(); int startOfXML = ret.indexOf("?xml"); if (startOfXML == -1) { // No xml?! throw new