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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Tag Files and jsp implicit objects" Watch "Tag Files and jsp implicit objects" New topic
Author

Tag Files and jsp implicit objects

Sameer Raza Ali
Greenhorn

Joined: Oct 15, 2009
Posts: 20

Hi,

HFSJ mentions - request and response implicit objects are available in tag files because even though it’s a .tag file it is going to end up as a part of a JSP.
if this reasoning is correct then why other JSP implicit objects - pageContext, config, application ect are unavailabe ?? after all its going to be a part of the jsp and will end up in the service method of the container generated servlet.

Thanks
Sameer


SCJP 1.4 , SCWCD 5.0
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9291
    
  17

Sameer Raza Ali wrote: why other JSP implicit objects - pageContext, config, application ect are unavailabe ??

the config, application, session and out implicit objects are available in a tag file. Only instead of pageContext, there's jspContext...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Sameer Raza Ali
Greenhorn

Joined: Oct 15, 2009
Posts: 20
there should be a correction in the book i guess but then again why is that pageContext is not available after all the underlying servlet will be setting this object
 
Don't get me started about those stupid light bulbs.
 
subject: Tag Files and jsp implicit objects
 
Similar Threads
Tag implicit objects
doubt in tag files
How to achieve this?
Implicit Objects available in Tag Files
implicitObjects available to the tag file?