• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printing the EL implicit objects

 
Sayak Banerjee
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?
 
Sreeraj G Harilal
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic