wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes why there is no getCookie(cookie name) function? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "why there is no getCookie(cookie name) function?" Watch "why there is no getCookie(cookie name) function?" New topic
Author

why there is no getCookie(cookie name) function?

jamil lusa
Ranch Hand

Joined: Aug 18, 2011
Posts: 59
as my topic stated, is there any reason why there is no such function exist? why we only can get a array of cookie instead of a particular one?
Ram Narayan.M
Ranch Hand

Joined: Jul 11, 2010
Posts: 247

It would be good if they have added that method also... We will have to write self to retrieve specific cookie from Array of Cookies in Pure Java class based Servlet...

But while writing in JSP level, you have the facility to get a particular cookie using EL predefined attribute "cookie" ...Eg., ${cookie.<name of cookie>}


SCJP 6 [SCJP - Old is Gold]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why there is no getCookie(cookie name) function?
 
Similar Threads
How to set JSESSIONID's maxAge?
server-side / client-side
Adding a cookie
does it will lead to automatic failure if i don't implement the cookie function?
set cookie problem