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
What is the reflection?
What is an array length?
What are the uses of java?
Can you sort a list in java?
What is the purpose of garbage collection in java, and when is it used?
Define nashorn in java8.
Can a class extend 2 classes in java?
List any five features of java?
What is an eror in java?
What is difference between printf and scanf?
What is a for loop in java?
how its run?
What does indexof return in java?
What is a protected class in java?
What is the difference between a loader and a compiler?