File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: response.addCookie is not working