aspose file tools*
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
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: 60053
    
  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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not using Maiin()
 
Similar Threads
Rounding off.
3 Calendar Months calcuation
creating dynamic object
Replace Spaces
how to validate a text field with numeric value