File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt in tag files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt in tag files" Watch "Doubt in tag files" New topic
Author

Doubt in tag files

Lavanya Mothilal
Ranch Hand

Joined: Dec 27, 2007
Posts: 30
Can anyone please tell me the answer for the following question with description?

Which two are concerning the objects available to developers creating tag files? (Choose two)

A.The session object must be declared explicitly
B.The request and response objects are available implicitly
C.The output stream is available through the implicit outStream object
D.The servlet context is available through the implicit servletContext object.
E. The JspContext for the tag file is available through the implicit jspContext object.

I think option B is correct. But what about the other answer ?


Thanks,<br />Lavanya
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

A. Wrong. The "session" object is implicit
B. Correct
C. Wrong. The ouput stream is available through the "out" object.
D. Wrong. The servlet context is available through the "application" object.
E. Correct


[My Blog]
All roads lead to JavaRanch
Lavanya Mothilal
Ranch Hand

Joined: Dec 27, 2007
Posts: 30
So do they mean to refer the 'pageContext' implicit object by the term

implicit jspContext object.


because PageContext extends JSPContext. ?
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

So do they mean to refer the 'pageContext' implicit object

No. In Tag Files, there is an implicit 'jspContext' object available. Check JSP.8.8 Implicit Object for more details.
Lavanya Mothilal
Ranch Hand

Joined: Dec 27, 2007
Posts: 30
I verified the spec. Thanks Christophe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt in tag files