Advantages and selling points of Servlets

What is Servlets and explain the advantages of Servlet life cycle?

- Servlets are modules that run within the server and receive and respond to the requests made by the client.

- Servlets retrieve most of the parameters using the input stream and send their responses using an output stream.

- Servlets are used to extend the server side functionality of a website.

- They communicate with various application on the server side and respond to the request made by the client.

What are the general advantages and selling points of servlets?

Servlets exhibit the following characteristics:

- Can handle multiple requests concurrently.

- Can synchronize requests.

- Can forward requests to other servers and servlets.

- Portable (Servlets are written in the java programming language and follow a standard API).

- They are secure (Like CGI, they don’t run shell and memory overflow, etc is handled by Java).

- Inexpensive (There are a number of free or very inexpensive web servers that are good for development use or deployment of low- or medium-volume Web sites).

What are the advantages using servlets over using CGI?

- CGI programs run outside the webserver.

- So a new process must be started to execute a CGI program.

- CGI programs are designed to handle a single request at a time. After that they return the result to the web server and exit.

- On the other hand servlets can handle multiple requests concurrently.

- They run within web servers.

- They generate dynamic content that is easier to write and faster to run.
What is Servlets and explain the advantages of Servlet life cycle?
Servlet life cycle - Servlets are the programs that run under web server environment. A copy of Servlet class can handle numerous request threads..
Different Authentication options available in Servlets
Servlets Authentication options - There are four ways of Authentication options available in servlets...
GenericServlet and HTTPServlet
GenericServlet and HTTPServlet - The Constructor HttpServlet() does nothing because this is an abstract class...
Post your comment