Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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..?
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.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
It is sorta covered in the
JavaRanch Style Guide
subject: doService calls doGet but if it is not defined?
Need solution for Question
doPost() vs doService()
handling servlet exception gracefully
how to invoke both doGet() and doPost()
Why doPost and doGet and not everything in doService
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013