• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diffentiate normal java class and servlet

 
Vijay P
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we differentiate a normal java class and servlet?
 
Ela Jha
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlet extends HttpServlet or Generic Servlet,
Servlet is a java class but some features which makes it special or servlet.
it is managed by a servlet container example tomcat.
it is used for handelling requests and then passing on the request to the class handelling business logic or to forward to another JSP.
it acts as controller generally not for performing buisness logic.
it handles requests & sends response through HttpResponse object.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic