| Author |
why there is no getCookie(cookie name) function?
|
jamil lusa
Ranch Hand
Joined: Aug 18, 2011
Posts: 58
|
|
|
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: 244
|
|
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]
|
 |
 |
|
|
subject: why there is no getCookie(cookie name) function?
|
|
|