A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
video training course this week in the
not main() in servlet
Joined: Nov 02, 2007
Mar 19, 2008 00:45:00
Why main() is not written in
Joined: Mar 06, 2001
Mar 19, 2008 00:56:00
It is all about 'entry points'
When you call a class from the command line, the entry point into your class is the main method.
When you call a
, the entry point is the service() method, but by default it then calls the doGet or doPost methods for us, so we use these entry points instead.
have a different entry point, they don't have a main() method either.
are different again.
I agree. Here's the link:
subject: not main() in servlet
Main methods in servlets
Getting serial number via server
Why Servlet Programming Do Not Need Main Method()
context init parameters
servlet does not contain main()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015