This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Struts and the fly likes response.addCookie is not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "response.addCookie is not working" Watch "response.addCookie is not working" New topic
Author

response.addCookie is not working

Shusha Li
Greenhorn

Joined: Mar 16, 2010
Posts: 4
Hi, Everyone,

I have a problem adding a cookie to my JSP page which is in struts. I add the following codes to my jsp page:


But when deploy my application at Tomcat 6, I can NOT find the cookie"Message" printed out.....

Please help!!!Thanks!!!
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Nothing to do with Struts.

Did you try refreshing the page?
Shusha Li
Greenhorn

Joined: Mar 16, 2010
Posts: 4
Yes, I refreshed and still the added cookie not shown.....
 
GeeCON Prague 2014
 
subject: response.addCookie is not working