aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes SCWCD exam study kit: Note on page 35 and and HelloWorldServlet on page 8 don't match 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: Note on page 35 and and HelloWorldServlet on page 8 don Watch "SCWCD exam study kit: Note on page 35 and and HelloWorldServlet on page 8 don New topic
Author

SCWCD exam study kit: Note on page 35 and and HelloWorldServlet on page 8 don't match

Urs Wiss
Greenhorn

Joined: Jul 20, 2003
Posts: 1
Hi,
On page 35 the author mentions, that if you override the service method in
your servlet class, you will lose the functionality provided by HttpServlet,
and the doXXX() methods will therefore not be called automatically and you
have to call it yourself. But the HelloWorldServlet on page 8, which overrides
the service method, doesn't call the doGet() method. Calling the doXXX()
method is therefore not always necessary?
Appreciate any feedback,
Urs
Paul Anilprem
Enthuware Software Support
Ranch Hand

Joined: Sep 23, 2000
Posts: 3324
    
    8
Calling the doXXX methods is definitely not necessary. But if you have coded those methods, which you usually do, and if you have overridden the service() method, then you will need to call the doXXX methods yourself from the service method.
The HelloWorldServlet does not have doXXX methods so there is no need to call them.


Enthuware - Best Mock Exams and Questions for Oracle/Sun Java Certifications
Quality Guaranteed - Pass or Full Refund!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SCWCD exam study kit: Note on page 35 and and HelloWorldServlet on page 8 don't match