Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

cookie.getDomain() and cookie.getPath() returns null in JSP

843836Oct 9 2003 — edited Oct 10 2003
Hi all,

I'm trying to get all cookies via JSP. I get all the cookies' name and value but I can't get domain and path via cookie.getDomain() and cookie.getPath(). Both of them returns me null.

Why I don't get domain and path which I set for the cookie? I am setting domain and path via cookie.setDomain() and cookie.setPath() methods when I set the cookie initially.

Thanks!
Maulin

--------------------

Have fun @ http://www.geocities.com/maulin_v/JavaRAQ.html
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2003
Added on Oct 9 2003
1 comment
459 views