wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Tag File Implicit Objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tag File Implicit Objects" Watch "Tag File Implicit Objects" New topic
Author

Tag File Implicit Objects

Imran Vohra
Ranch Hand

Joined: Dec 12, 2005
Posts: 77

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

Joined: Sep 18, 2004
Posts: 380
All implicit objects available in a jsp page (Except: page and exception)
and jspContext instead of pageContext.


Regards,
Shivani.


/** Code speaks louder than words */
Joey Sanchez
Ranch Hand

Joined: Jun 23, 2011
Posts: 86

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
Bartender

Joined: Apr 07, 2010
Posts: 1731
    
  25

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

Joined: Jun 23, 2011
Posts: 86

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
Bartender

Joined: Apr 07, 2010
Posts: 1731
    
  25

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tag File Implicit Objects