try adding .toString() at the end not sure, but that might so the trick.
Andrew
On 30 Nov 2004, at 09:42, David Merrilees wrote:
I'm having trouble retrieving a cookie value in flowscript. I have a
cookie set with the value 'true'. When I retrieve the value using
flowscript I receive the erro
> function contact() {
> var test = cocoon.request.getCookies()[0].value()
> cocoon.sendPage( "test.jx", { "test" : test } );
> }
the correct syntax is:
cocoon.sendPage( "test.jx", { test : test } );
-
the function getValue() should return a String... Anyway... shouldn't you
use
getCookies()[0].getValue() instead of .value()
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/environment/Cookie.ht
ml
Kind regards,
Robby Pelssers
-Original Message-
From: David Merrilees [mailto:[EM
Upayavira
David Merrilees wrote:
No, none of that works. I think there is a bug in cocoon.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 November 2004 12:22
To: [EMAIL PROTECTED]
Subject: RE: retrieving a cookie value in flowscript - Email has
Try to break i
Thanks, but no joy i'm afraid.
From: Andrew M [mailto:[EMAIL PROTECTED]
Sent: 30 November 2004 09:46To:
[EMAIL PROTECTED]Subject: Re: retrieving a cookie value in
flowscript - Email has different SMTP TO: and MIME TO: fields in the email
addresses
try adding .toString() at th
Sent: 30 November 2004 11:09
To: [EMAIL PROTECTED]
Subject: RE: retrieving a cookie value in flowscript - Email has
different SMTP TO: and MIME TO: fields in the email addresses
> function contact() {
> var test = cocoon.request.getCookies()[0].value()
> cocoon.sendPage( &quo
I thought that. Both methods produce the same error, as does getName().
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 November 2004 11:18
To: [EMAIL PROTECTED]
Subject: RE: retrieving a cookie value in flowscript - Email has
different SMTP TO: and MIME TO
to:[EMAIL PROTECTED]
> Sent: Tuesday, 30 November, 2004 13:02
> To: [EMAIL PROTECTED]
> Subject: RE: retrieving a cookie value in flowscript - Email
> has different SMTP TO: and MIME TO: fields in the email addresses
>
>
> I thought that. Both methods produce the same error, a
quisite
patch to address this fault. I am using cocoon 2.1.5.1. Do I need a
newer version?
-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: 30 November 2004 13:35
To: [EMAIL PROTECTED]
Subject: Re: retrieving a cookie value in flowscript - Email has
different SMTP T
o:[EMAIL PROTECTED]
Sent: 30 November 2004 12:22
To: [EMAIL PROTECTED]
Subject: RE: retrieving a cookie value in flowscript - Email has
Try to break it down in steps:
var cookies = cocoon.request.getCookies(); if (cookies.size() > 0) {
var firstcookie = cookies[0];
print(&quo
No, none of that works. I think there is a bug in cocoon.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 30 November 2004 12:22
To: [EMAIL PROTECTED]
Subject: RE: retrieving a cookie value in flowscript - Email has
different SMTP TO: and MIME TO: fields in
That's solved it, thanks. I don't understand why I couldn't use
getValue() though.
-Original Message-
From: Upayavira [mailto:[EMAIL PROTECTED]
Sent: 30 November 2004 14:10
To: [EMAIL PROTECTED]
Subject: Re: retrieving a cookie value in flowscript - Email has
different SM
PROTECTED]
Sent: 30 November 2004 14:10
To: [EMAIL PROTECTED]
Subject: Re: retrieving a cookie value in flowscript - Email has
different SMTP TO: and MIME TO: fields in the email addresses - Email
has different SMTP TO: and MIME TO: fields in the email addresses
David Merrilees wrote:
cocoon.reques
13 matches
Mail list logo