Posts

Showing posts with the label servlet class

Servlet Tutorial

Image
What is Servlet ?       Servlet  is a java  programming language class used request  response programming model. Used to create server side web application and generate dynamic web page. Servlet language is Robust and scalable because of java language.Before Servlet we used CGI (Comman Gateway Interface) for server side programming.  The javax.servlet and javax.servlet.http packages provide the servlet interfaces and classes to implement the servlet.      All servlet must implement the servlet interface. Advantage of Servlet :  The servlet contain the many advantages over the CGI. The web container creates threads for handling the multiple requests to the servlet. Threads have a lot of benefits over the processes such as they share a common memory area, lightweight, cost of communication between the treads are low.The following benefits for Servlets are , 1. Better Performance --> Because it create thr...