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 Murach's Java Servlets and JSP this week in the Servlets 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: 1629
    
  23

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: 1629
    
  23

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
 
 
subject: Tag File Implicit Objects
 
Similar Threads
How to get ServletConfig or ServeltContext object in the Simple Tag handler?
Tag implicit objects
Does a Tag file have a ServletContext?
doubt in tag files
One issue of Custom tag