aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes doService calls doGet but if it is not defined? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "doService calls doGet but if it is not defined?" Watch "doService calls doGet but if it is not defined?" New topic
Author

doService calls doGet but if it is not defined?

Jagdeep gupta
Greenhorn

Joined: Oct 21, 2012
Posts: 3
If the doService method is overwritten and it is made to call doGet or say doPost and that method is not defined, what will be the result..?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 31054
    
162

Nothing happens. The HttpServlet class provides a "do nothing" doGet() and doPost() for you. It also provides default "do nothing" for other methods.

From the browser's point of view, I believe the user just sees a white page since the request never returns anything from the server.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: doService calls doGet but if it is not defined?