This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "response.addCookie is not working" Watch "response.addCookie is not working" New topic

response.addCookie is not working

Shusha Li

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

Joined: Sep 29, 2008
Posts: 12617

Nothing to do with Struts.

Did you try refreshing the page?
Shusha Li

Joined: Mar 16, 2010
Posts: 4
Yes, I refreshed and still the added cookie not shown.....
jQuery in Action, 3rd edition
subject: response.addCookie is not working
It's not a secret anymore!