Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 44827 invoked from network); 2 Apr 2005 09:55:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Apr 2005 09:55:31 -0000 Received: (qmail 57241 invoked by uid 500); 2 Apr 2005 09:55:26 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 57226 invoked by uid 500); 2 Apr 2005 09:55:26 -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 57199 invoked by uid 99); 2 Apr 2005 09:55:26 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from apate.telenet-ops.be (HELO apate.telenet-ops.be) (195.130.132.57) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 02 Apr 2005 01:55:25 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by apate.telenet-ops.be (Postfix) with SMTP id BA43838136 for ; Sat, 2 Apr 2005 11:55:21 +0200 (CEST) Received: from [10.0.1.2] (d51A511F0.access.telenet.be [81.165.17.240]) by apate.telenet-ops.be (Postfix) with ESMTP id 8C8103813F for ; Sat, 2 Apr 2005 11:55:21 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <676313aae5bc1a00b2c2ecb285c184fb@implements.be> Content-Transfer-Encoding: 7bit From: Yves Vindevogel Subject: Re: Example of Cookies Date: Sat, 2 Apr 2005 11:55:22 +0200 To: users@cocoon.apache.org X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tnxalot On 01 Apr 2005, at 17:55, gounis@osmosis.gr wrote: > > hi Yves > > a simple code fragment in XSP > > ... > > String parent_role = name="parent_role"/>; > String parent_id = name="parent_id"/>; > > if (parent_id==null){ > parent_id = > > > > parent_role > > > ; > > parent_id > > }else{ > > > > parent_role > > > parent_id > > > > } > > > ... > > be carefull to declare namespaces > xmlns:esql="http://apache.org/cocoon/SQL/v2" > xmlns:xsp-request="http://apache.org/xsp/request/2.0" > xmlns:xsp-cookie="http://apache.org/xsp/cookie/2.0"> > > this is an 2 years old implementation in XSP i have found in my disk > that > work > > i'll suggest you to use flow instead of XSP (but this depends of your > needs) > > > http://cocoon.apache.org/2.1/userdocs/flow/api.html > http://cocoon.apache.org/2.1/userdocs/flow/api.html#Cookie+Object > > regards > > stavros > > > On Fri, 1 Apr 2005, Yves Vindevogel wrote: > >> Hi, >> >> Where can I find a newbie example on how to use cookies in cocoon ? >> I need to drop a cookie on the client and read it back ... >> >> Regards, >> Yves >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org >> For additional commands, e-mail: users-help@cocoon.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org