• 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

printing the EL implicit objects

 
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When trying to exceute this JSP


I'm getting the following output : -


Now the first three lines are quite understandable....toString() is being invoked on the EL implicit objects....what the heck is happening to the last one....I mean how is it different from the others....As far as I see, it's also a map like the other three....could anybody please explain this?
 
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the implicit EL cookie object will create only if request header c ookie contain any value.
If refresh the page, you will get the out put like

org.apache.commons.el.ImplicitObjects$5@1a6684f
org.apache.commons.el.ImplicitObjects$9@a3d3b
org.apache.commons.el.ImplicitObjects$7@3a1ec6
{JSESSIONID=javax.servlet.http.C ookie@1ba6076}



But i have still a doubt, when i request first time for the page, not only i am not getting a value for the kookie object but also {} is displaying.



Why is this({}) displaying?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic