A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
doService calls doGet but if it is not defined?
Joined: Oct 21, 2012
May 12, 2013 08:10:05
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..?
author & internet detective
Joined: May 26, 2003
May 12, 2013 08:12:36
Nothing happens. The
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.
OCA 8 book
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
subject: doService calls doGet but if it is not defined?
Need solution for Question
doPost() vs doService()
handling servlet exception gracefully
Why doPost and doGet and not everything in doService
how to invoke both doGet() and doPost()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015