• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question about cookie

 
shi lei
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Identify the statements that are true about the EL implicit
variable "cookie",select two choices

a. cookie variable retrieves the values according to the semantics of
HttpServletRequest getkookies()
b. cookies are retrieved in the same order in which they were added.
c. the implicit variable "cookieValues" should be used along with "cookie"
to retrieve the cookie values
d. if the same name is used by multiple cookies,the implementation will
return the first one that is encoutered in the array of cookie objects
returned by the getkookies() method.


I think b ,d are true.

but have some vague
 
singh santosh
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
yes u r right.. but which cookie would be returned(considering there are are many wiht same name) is unpredicatable(ordering is not predicatable).

regards
-santosh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic