Arrgh.  I cannot figure out why this isn't working correctly!!  Every
time I look up the domain "arnie.eng.mcd.mot.com" it returns "null".
This makes no sense because the cookie is there and it is the first one
in the list as well.  But it always returns NULL.  Any help would be
great.  Thank you very much.

cookies = req.getCookies();

for (int i=0; i<cookies.length; i++)
{
        Cookie thisCookie = cookies[i];
        System.out.println("Cookie's Name is: " + thisCookie.getName());

        System.out.println("Cookies Domain is: " +
thisCookie.getDomain());

        if (thisCookie.getDomain().equals("arnie.eng.mcd.mot.com"))
        {
                do this blah blah blah;
        }
        else
        {
                do this blah blah blah;
        }
}

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to