Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Where is the main method in servlet  RSS feed

 
babu krishnan
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How are the server programs run?
How a application server runs servlet without a main method?
Thanx in advance
 
Sandeep Jain
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Servlets work on a different mecanism . When a request is made to a particular servlet , the invoker method invokes the servlet . When the servlet is called , its init method is called only for the first time ,this is basically for initialzing the servlet parameters.
Once the Servlet method is initialized, All the request are dealt by either service method or
doGet,doPost method.
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could also try the Sun tutorial on servlets.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!