Re: retrieving a cookie value in flowscript

2004-11-30 Thread Andrew M
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

RE: retrieving a cookie value in flowscript

2004-11-30 Thread H . vanderLinden
> 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 } ); -

RE: retrieving a cookie value in flowscript

2004-11-30 Thread robby . pelssers
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

Re: retrieving a cookie value in flowscript

2004-11-30 Thread Upayavira
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

RE: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-11-30 Thread David Merrilees
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

RE: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-11-30 Thread David Merrilees
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

RE: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-11-30 Thread David Merrilees
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

RE: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-11-30 Thread H . vanderLinden
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

RE: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-11-30 Thread David Merrilees
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

Re: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-11-30 Thread Upayavira
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

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

2004-11-30 Thread David Merrilees
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

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

2004-11-30 Thread David Merrilees
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

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

2004-11-30 Thread Upayavira
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