what is the use of servlet engine?

Answer Posted / sivasubramanian.k

The Java Servlet API allows a software developer to add
dynamic content to a Web server using the Java platform.
The generated content is commonly HTML, but may be other
data such as XML. Servlets are the Java counterpart to non-
Java dynamic Web content technologies such as PHP, CGI and
ASP.NET. Servlets can maintain state across many server
transactions by using HTTP cookies, session variables or
URL rewriting.

The Servlet API, contained in the Java package hierarchy
javax.servlet, defines the expected interactions of a Web
container and a servlet. A Web container is essentially the
component of a Web server that interacts with the servlets.
The Web container is responsible for managing the lifecycle
of servlets, mapping a URL to a particular servlet and
ensuring that the URL requester has the correct access
rights.

A Servlet is an object that receives a request and
generates a response based on that request

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is 0 an even number?

762


What is java util list?

680


Can substring create new object?

803


Is linkedlist thread safe in java?

786


What is difference between ++ I and I ++ in java?

726


Can we override protected method in java?

825


What is singleton class example?

807


What does substring mean?

720


What is an association?

768


Difference between notify() method and notifyall() method in java?

766


Will minecraft java be discontinued?

924


Why volatile is used in java?

771


Difference between error and exception

5503


How do you write a scanner class in java?

785


What programs use java?

708