aspose file tools*
The moose likes Servlets and the fly likes main() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "main()" Watch "main()" New topic
Author

main()

jignesh soni
Ranch Hand

Joined: Dec 10, 2007
Posts: 150
Why does servlet not have main method ?
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

The question is "why should a servlet have a main() method?"

A servlet is usually managed by a servlet container and it's not a standalone application. So there's no reason for it to have a main() method.

Marco
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61606
    
  67

Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Please go back and change your post to add a more meaningful subject by clicking the .


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: main()