Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Not able to read all the Cookies

 
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
 
Ranch Hand
Posts: 3389
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.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic