Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in implicit EL objects - HFSJ 2nd Edition

 
MalanS Subramanian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
In HFJS 2nd edition @ pg 383 there is a smaple JSP code given



In the description it is given that currentTip is a request scoped attribute. My doubt is that, Is there any implicit object in EL by the name 'pageContent'?

Regards,
Malan
 
Vijitha Kumara
Bartender
Posts: 3953
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If (as you are saying) currentTip is a request scoped attribute then it should be accessed via ,

either ${requestScope.currentTip.something} or ${currentTip.something}.

 
MalanS Subramanian
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
true.. But am not sure whether the code snippet is an errata from HFJS team or it is indeed a valid one.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!