Two Laptop Bag
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Implicit Objects doubt! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Implicit Objects doubt!" Watch "Implicit Objects doubt!" New topic

Implicit Objects doubt!

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032


Can anyone clarify me the difference between JSP and EL implicit objects?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Both are same or we can say that using EL we can access JSP implicit objects

"Know where to find the solution and how to use it - that's the secret of success."
Marcus Green
arch rival

Joined: Sep 14, 1999
Posts: 2813
EL and JSP implicit objects are not the same.

SCWCD: Online Course, 50,000+ words and 200+ questions
Ali Gohar
Ranch Hand

Joined: Mar 18, 2004
Posts: 572
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

Joined: Nov 28, 2005
Posts: 43
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

Joined: Sep 26, 2006
Posts: 10032


Thanks for the explanation!
I agree. Here's the link:
subject: Implicit Objects doubt!
It's not a secret anymore!