wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.....
wood burning stoves
subject: response.addCookie is not working
Similar Threads
Regarding Cookies
add user
Tomcat refusing to set a cookie...
setting a cookie in jsp
Cookie access with EL expression