Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
main()
jignesh soni
Ranch Hand
Posts: 155
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why does
servlet
not have main method ?
Marco Ehrentreich
best scout
Posts: 1294
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
Sheriff
Posts: 67746
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
] [
About Bear
] [
Books by Bear
]
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Html Input to oracle through servlet and JSP output
Main methods in servlets
importance of main method in servlets
getServletConfig()
init() vs constructor
More...