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 SCWCD Exam study kit prolem! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "SCWCD Exam study kit prolem!" Watch "SCWCD Exam study kit prolem!" New topic
Author

SCWCD Exam study kit prolem!

Hai Lin
Ranch Hand

Joined: May 23, 2004
Posts: 79
Hi All,
I found a question when I am reading "SCWCD Exam study kit".
The Page 198, question 3:

Which of the following methods is defined by the JSP engine? (Select One)
a jspInit()
b _jspService()
c _jspService(ServletRequest, ServletResponse)
d _jspService(HttpServletRequest, HttpServletReponse)
e jspDestroy()

The answer given by the book is "d", of course, d is correct, but why the
a and e are wrong?

Greatly appreicate for solving my puzzle.

Hai
Sumitro Palit
Ranch Hand

Joined: Dec 13, 2003
Posts: 37
Hai

I think what the question implies is that out of these which function is defined by the engine and cannot be overriden any further. For jspInit & jspDestroy, the jsp engine generates default implementations but you can override them using jsp declarations and add your own init/destruct routines. Not so for the _jspService method - got to accept what the jsp engine generates from your jsp page.

The wording of the question isnt that good - but I think this is what the intent behind this question is.

- ortimuS
Gaurav Sahni
Ranch Hand

Joined: Sep 03, 2003
Posts: 56
yes, that is what the question means exactly.
refer to page 188, para 2 of the book for similar clarification provided.

Gaurav.


To know recursion, you must first know recursion...
Hai Lin
Ranch Hand

Joined: May 23, 2004
Posts: 79
Ortimus Tilap, Gaurav Sahni,
Thanks a lot.
You really answered my question.

Hai
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SCWCD Exam study kit prolem!