Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in tag files

 
Lavanya Mothilal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Lavanya Mothilal
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So do they mean to refer the 'pageContext' implicit object by the term

implicit jspContext object.


because PageContext extends JSPContext. ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I verified the spec. Thanks Christophe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic