Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag File Implicit Objects

 
Imran Vohra
Ranch Hand
Posts: 77
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know that request, response and jspContext implicit object are available in tag file.
I want to know that apart from these any other implicit objects are there in tag file or not?

Thanks
Imran
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All implicit objects available in a jsp page (Except: page and exception)
and jspContext instead of pageContext.


Regards,
Shivani.
 
Joey Sanchez
Ranch Hand
Posts: 88
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm reading a book where it uses requestScope implicit object. And I really think that it is a mistake and it would have to be only request because requestScope is an implicit object for EL.



It would have to be

 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2275
81
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I really think that it is a mistake and it would have to be only request because requestScope is an implicit object for EL.

It is not a mistake because you can use EL inside tag-files.

Regards,
Frits
 
Joey Sanchez
Ranch Hand
Posts: 88
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot @Frits Walraven

So in this case, tag-file, we would have available:
EL implicit objects (pageContext, pageScope, requestScope, sessionScope, applicationScope, param, paramValues, header, headerValues, cookie, initParam)
and
tag files implicit objects (request, response, jspContext, session, application, out, config).
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2275
81
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correct , with a small remark that the tag files implicit objects are available within scriptlets and expressions and EL implicit objects are available within EL expressions.

Regards,
Frits
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic