Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to read all the Cookies

 
Satish Kumar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3381
Mac MySQL Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how are you accessing your cookies?
 
Satish Kumar
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic