• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

printing the EL implicit objects

 
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!