And with regards to:
as i know do...() method is used which in turn extends service()method implicitly
Overloading any of the doXXX() methods does not "implicitly extend" service(), whatever "implicitly extend" means.
[ October 22, 2006: Message edited by: Bear Bibeault ]
Originally posted by amarjeet kumar:
if we extend Httpservlet in our servlet program then as i know do...() method is used which in turn extends service()method implicitly.But i have made a program in which service() method has been overloaded in HttpServlet.
service method is the one which delegates the call to the respective doXXXX method accroding to the request.getMethod().So in case you override the service method the delegation is not taking place and you code is getting executed and the results you are positive.
Welcome to JavaRanch!
We're pleased to have you here with us in the servlets forum, but there
are a few rules that need to be followed, and one is that proper names are
required. Please take a look at the
JavaRanch Naming Policy and
adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
You can change it here
[ October 25, 2006: Message edited by: Ben Souther ]