Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cookie/Header Doubt

 
N S Raju
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic