A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
overwriting service method
Joined: Jul 07, 2007
Jul 07, 2007 03:47:00
what wil happen when we overwrite service method.
Are there any advantages or disadvantages.
Joined: Mar 08, 2007
Jul 07, 2007 04:16:00
It's preferred not to override the service() method.
Override either doGet() or doPost() methods and let the service() method call the right one.
Best of luck ...
SCJP 5.0, SCWCD 1.4, SCJA 1.0
Joined: Dec 11, 2004
Jul 07, 2007 06:04:00
This question gets asked quite a lot here so if the FAQ doesn't answer it for you, search this forum and you'll find plenty of discussions on the subject.
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: overwriting service method
Did implicit objects are instance variables or local variables in _jspService
Post to Servlet from Applet doesn't work
protected Method service???
Web service method call behaviour?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014