This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes Not using Maiin() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Not using Maiin()" Watch "Not using Maiin()" New topic
Author

Not using Maiin()

Anto Telvin
Ranch Hand

Joined: Aug 12, 2008
Posts: 113
I understood that every servlet is a java class only ..But why we are not using any main() to start the loading of class ?


Thanks


Anto Telvin Mathew<br />Many of the life failures are people who did not realize how close they were to success when they give up. EDISON
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

main() is used to start applications, not servlets.

P.S. please fix the typo in your subject.
[ August 14, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
benjamin muktesh
Greenhorn

Joined: Jul 01, 2008
Posts: 24
The main() method acts as an entry point to the java program.
The servlet container takes care of this in case of a servlet.
Do a bit of reading on java class loaders.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Not using Maiin()
 
Similar Threads
Rounding off.
how to validate a text field with numeric value
Replace Spaces
creating dynamic object
3 Calendar Months calcuation