This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Author

Cookie/Header Doubt

N S Raju
Greenhorn

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
Surya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cookie/Header Doubt
 
It's not a secret anymore!