Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpServlets  RSS feed

 
Ramesh Kanuri
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How httpservelts are executed with out main method.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are numerous ways to run Java code. A main method is used only for desktop application; other kinds of code (like applets, servlets, EJBs) generally must follow a published API. If you search for "servlet lifecycle" (or "applet lifecycle") you'll find explanations of how that works. Servlets, in particular, must implement the javax.servlet.Servlet interface.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66204
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to take the time to compose descriptive subjects for your posts; read this for more information.

Using a title of "HttpServlets" in a forum completely dedicated to questions on Servlets isn't very helpful.

Please go back and change your post to add a more meaningful subject by clicking the
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!