cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Merrilees" <david.merril...@fenc.org.uk>
Subject RE: retrieving a cookie value in flowscript - Email has different SMTP TO: and MIME TO: fields in the email addresses
Date Tue, 30 Nov 2004 14:04:08 GMT
cocoon.request.cookies returns an array of all cookies from the domain,
cocoon.request.getCookie("yourcookie") returns a reference to the cookie
object. The problem comes when I try to retrieve the cookie value. 

The getValue() method of the cookie object returns the error "getValue
is not a function.
org.apache.avalon.framework.CascadingRuntimeException: getValue is not a
function" 

The value() method of the cookie object returns the error "true is not a
function. org.apache.avalon.framework.CascadingRuntimeException: true is
not a function"; true is the cookie value. It is not evaluating the
value as a string. It doesn't matter what the value is, it always
returns this error.

I`ve checked out the related bug to this:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22526. It seems to
suggest it has not been fixed correctly or I am missing the requisite
patch to address this fault. I am using cocoon 2.1.5.1. Do I need a
newer version?

-----Original Message-----
From: Upayavira [mailto:uv@upaya.co.uk] 
Sent: 30 November 2004 13:35
To: users@cocoon.apache.org
Subject: Re: retrieving a cookie value in flowscript - Email has
different SMTP TO: and MIME TO: fields in the email addresses

Do:
I've just tried this locally and had it working. A few things to try:

print(cocoon.request.cookies);
print (cocoon.request.getCookie("yourcookie"));

What does they say?

Remember that a session ID might be your first cookie. That may well not
be what you are after.

Regards, Upayavira

David Merrilees wrote:

>No, none of that works. I think there is a bug in cocoon. 
>
>-----Original Message-----
>From: H.vanderLinden@MI.unimaas.nl 
>[mailto:H.vanderLinden@MI.unimaas.nl]
>
>Sent: 30 November 2004 12:22
>To: users@cocoon.apache.org
>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("first cookie value: " + firstcookie.getValue()); }
>
>HTH.
>
>Bye, Helma
>  
>

---------------------------------------------------------------------
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


Mime
View raw message