Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Servlets and the fly likes Cookie/Header Doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookie/Header Doubt" Watch "Cookie/Header Doubt" New topic

Cookie/Header Doubt

N S Raju

Joined: Apr 23, 2004
Posts: 6
Hai All,
I was trying this code in a servlets doGet method

Doubt 1: Can we add Header After we commit the response ?
Doubt 2: We know that addCookie stmt sends cookie as a Response header,
The stmt in line 2 (when uncommented) does not create a cookie but line 1 does , how is this possible ?

thanks in advance
I agree. Here's the link:
subject: Cookie/Header Doubt
Similar Threads
GC Doubt
A doubt in Cookie
Doubt about header
Cookie Doubt !!