Geronimo V 1.0 . Is there something else I need to do?
--- Paul McMahan <[EMAIL PROTECTED]> wrote:
> When I pasted that code into a JSP (renaming the
> cookie array to
> cookies to avoid a compile error) and ran it in the
> Tomcat version of
> Geronimo 1.1 it worked as expected.
>
> The first request produced:
> Here testign this...1
> Here testign JSESSIONID
>
> and the subsequent requests produced:
> Here testign this...2
> Here testign JSESSIONID
> Here testign mycookie
> cookie present..test
>
> Which version of Geronimo are you using?
>
> Paul
>
>
> On 10/3/06, sreepriya ramakrishnan
> <[EMAIL PROTECTED]> wrote:
> > Cookie cookie = new Cookie("mycookie","test");
> > cookie.setMaxAge(60);
> > response.addCookie(cookie);
> >
> > then:
> >
> > Cookie cookie[]=request.getCookies()
> > ;System.out.println("Here testign
> > this..."+cookie.length);
> > for (int
> i=0;i<cookie.length;i++)
> > {
> >
> System.out.println("Here testign
> > "+cookie[i].getName());
> >
> if(cookie[i].getName().equals("mycookie"))
> > {
> >
> System.out.println("cookie
> > present.."+cookie[i].getValue());
> > }
> > }
> >
> > -Priya
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com