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 Not able to read all the Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Not able to read all the Cookies" Watch "Not able to read all the Cookies" New topic
Author

Not able to read all the Cookies

Satish Kumar
Ranch Hand

Joined: Oct 16, 2006
Posts: 84
Hi All,

We are using Struts Frame work in our project.

We are having a requirement that we need to store some value in cookie in action class of one war file and later read that cookie value in another war file action class. I am trying to read that using the request.getKookies() method.I am not able to read all the cookies that are seen in the browser(we use mozilla firefox).we also create cookies using the response.setHeader(String,String) method and so i tried to access them using the request.getHeader(String) method.
But using both the methods i am able to read only some cookies say 2 out of 10.

Can any one help me in this case please

I will be eagerly waiting for your reply
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3344

how are you accessing your cookies?


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Satish Kumar
Ranch Hand

Joined: Oct 16, 2006
Posts: 84
Hi,

I am accessing the cookies using the method "request.getKookies()".
we also create cookies using the response.setHeader(String,String) method and so i tried to access them using the request.getHeader(String) method.
But still i am not able to access all the cookies.
Can any one please suggest me how can I access all the cookies that I can use using the Browser Show cookies option.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to read all the Cookies
 
Similar Threads
Not able to set cookies
Not able to set cookies
Storing more then 20 cookies from same URL
Why isn't my cookie being set?
Cookies