Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implicit Objects doubt!

 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

Can anyone clarify me the difference between JSP and EL implicit objects?
 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both are same or we can say that using EL we can access JSP implicit objects
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EL and JSP implicit objects are not the same.
 
Ali Gohar
Ranch Hand
Posts: 572
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get attribute from any scope, in JSP we use



in EL we have



Similarly if you need to get any request parameter we can use request.getParameter(key) in JSP or we can use EL and use ${param.key} etc

We can't set attributes in scopes using EL i guess
 
Kevin DesLauriers
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EL implicit objects return maps of the attribute or parameters (except the pageScope that returns the actual page scope) where the JSP implicit objects return the actual objects.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ali,

Thanks for the explanation!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic