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

Why collection is called framework in java?

721


What are the two basic ways in which classes that can be run as threads may be defined?

816


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

765


How to set the permissions to a file in java?

750


What are 3 data types?

750


What are decalarations?

849


What are the different types of collections in java?

731


How does varargs work in java?

840


Explain with example the concept of constant variable in java.

882


Is there a sort function in java?

764


What do you understand by the bean persistent property?

769


What is threaded programming and when is it used? : Java thread

755


How to use string tokenizer class.

843


Why are parameters used in functions?

714


Difference between doublesummarystatistics, intsummarystatistics and longsummarystatistics ?

767