Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 72679 invoked from network); 27 Aug 2003 16:01:19 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Aug 2003 16:01:19 -0000 Received: (qmail 85456 invoked by uid 500); 27 Aug 2003 16:00:03 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 85420 invoked by uid 500); 27 Aug 2003 16:00:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 85155 invoked from network); 27 Aug 2003 15:59:58 -0000 Received: from unknown (HELO il-host.il-host.net) (212.199.30.126) by daedalus.apache.org with SMTP; 27 Aug 2003 15:59:58 -0000 Received: (qmail 9512 invoked from network); 27 Aug 2003 15:59:04 -0000 Received: from unknown (HELO www) (212.199.26.61) by 30115.telnet.co.il with SMTP; 27 Aug 2003 15:59:04 -0000 Reply-To: From: "=?windows-1255?B?4OX46SDr5O8=?=" To: Subject: use of XSP sources with recursion and "cinclude" Date: Wed, 27 Aug 2003 18:55:08 +0200 Organization: =?windows-1255?B?7uf54eX6IO759Ojp7Q==?= Message-ID: <02DAFE5A89572348B21CCE1FDF47BD9341D927@ntserver.mahashavot.local> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_002B_01C36CCC.F18A0B70" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Disposition-Notification-To: "=?windows-1255?B?4OX46SDr5O8=?=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_002B_01C36CCC.F18A0B70 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable Hi and good day to you all! =20 I am using the binary version of Cocoon version 2.0.4 for JDK 1.4. My server is the Apache Jakarta Tomcat version 4.1.27. My database is MySQL version 4.0.13 using the JConnector driver version 3.0.8. My computer=92s operating system is Microsoft Windows 2000 Professional. =20 Here are my questions: I am trying to create a recursion using cinclude to create an XML tree of objects I get from the Database (I recursively call an XSP source by putting a cinclude in it). The thing is, as in any recursion, I need to either send parameters or have global variables that I can access, no matter where I am in the recursion. Therefore I tried to use cinclude in an XSP and send with the link some parameters, like so: That didn=92t work. Is there any way I can use cinclude or some other = form of source aggregation (besides xinclude) to send these parameters, or can I create global variables in Cocoon that I can access from any XSP I run using a specific sitemap? If I run the recursion without sending parameters from a cinclude URL, it works very well, but I need to send these parameters for it to be functional and dynamic. =20 The value =93l_CurCtgSID=94 that I tried to send with the =93ctgSID=94 = parameter in the example, is a local Java =93String=94 variable I predefine in an context. Into this variable I insert a value that I get from the Database. This means that I also need to be able so send data I dynamically receive from the Database as the values of the parameters in the cinclude URL. By the way, it doesn=92t work when I use a numeric constant either (instead of the Java =93String=94 variable). =20 Any help is welcome and greatly appreciated. God bless=85 Ori ------=_NextPart_000_002B_01C36CCC.F18A0B70 Content-Type: text/html; charset="windows-1255" Content-Transfer-Encoding: quoted-printable

Hi and good day to you = all!

 

I am using the binary version of Cocoon version 2.0.4 for JDK = 1.4.

My server is the Apache Jakarta Tomcat version = 4.1.27.

My database is MySQL version 4.0.13 using the JConnector driver version = 3.0.8.

My computer=92s operating system is Microsoft Windows 2000 = Professional.

 

Here are my questions:

I am trying to create a recursion using cinclude to create an XML tree of = objects I get from the Database (I recursively call an XSP source by putting a = cinclude in it). The thing is, as = in any recursion, I need to either send parameters or have global variables = that I can access, no matter where I am in the recursion. Therefore I tried to use = cinclude in an XSP and send with = the link some parameters, like so:

<cinclude:include src=3D"cocoon:/mach/GetLinks?ctgSID=3Dl_CurCtgSID"/>

That didn=92t work. Is there any way I can use cinclude or some other form of = source aggregation (besides xinclude) to send these parameters, or can I create global variables in Cocoon that I can = access from any XSP I run using a specific = sitemap?

If I run the recursion without sending parameters from a = cinclude URL, it works very well, = but I need to send these parameters for it to be functional and = dynamic.

 

The value =93l_CurCtgSID=94 that I tried to send with the =93ctgSID=94 parameter in the example, is a local Java =93String=94 variable I predefine in an = <xsp:logic> context. Into this variable I insert a value that I get from the Database. This = means that I also need to be able so send data I dynamically receive from the = Database as the values of the parameters in the cinclude URL. By the way, it doesn=92t work when I use a numeric constant either (instead of = the Java =93String=94 variable).

 

Any help is welcome and greatly appreciated. God = bless=85

Ori=

------=_NextPart_000_002B_01C36CCC.F18A0B70--