• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cookies

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
how do we get cookies from EL
this is my question?

This is found in head first book
my understanding is cookies had property named userName and userName had val,isn't it ?
${cookies.userName.val}

Im confused explain me clearly.
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by sandeep Talari:
how do we get cookies from EL
this is my question?

This is found in head first book
my understanding is cookies had property named userName and userName had val,isn't it ?
${cookies.userName.val}

Im confused explain me clearly.



In this case, +cookies+ is a collection of Cookie objects (probably a version of the java.util.Map).

There is an item in the +cookies+ collection called +userName+, so this would indicate there being a Cookie with the Name of "userName".

A Cookie will have multiple different attributes assigned to it, one of which is the Value, which you get using the +val+ property.

The equivalent Java Code might be something like this:

[ July 29, 2008: Message edited by: Steve Luke ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic