This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes how to get the cookie value in strut2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get the cookie value in strut2" Watch "how to get the cookie value in strut2" New topic
Author

how to get the cookie value in strut2

pankaj semwal
Ranch Hand

Joined: Oct 07, 2008
Posts: 301
Hi,
I my action i am setting the cookie values as like this



But how can i get cookie value.

Please tell me.

Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Implement CookiesAware.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You should *not* be instantiating an instance of an interceptor inside an action.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the cookie value in strut2