jQuery in Action, 3rd edition
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: http://aspose.com/file-tools
subject: Cookie/Header Doubt
It's not a secret anymore!