Science  People  Locations  Timeline
Index: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Home > Java Servlet


 Contents
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 dynamic web content technologies such as CGI or ASP. However, unlike CGI, (but like PHP), it has the ability to maintain state after many server transactions. This is done using HTTP Cookies, session variables or URL rewriting.

The Servlet API 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 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 requests and generates a response based on the request. The API defines HTTP subclasses of the generic servlet requests and responses as well as an HTTP session object that tracks multiple requests and responses between the web server and a client. Servlets may be packaged as a Web application.

Moreover, servlets can be generated automatically by Java Server PagesJSP or JavaServer Pages is a Java technology that allows developers to dynamically generate HTML, XML or some other type of web page. The technology allows Java code and certain pre-defined actions to be embedded into static content. The JSP syntax adds a (JSP), or alternately by template engines such as WebMacroWebMacro is a framework for developing Java Servlets. It enforces a Model-View-Controller framework on a project allowing for a clean separation of concerns in the design. In particular WebMacro keeps program source code absolutely separate from presentat. Often servlets are used in conjunction with JSPs in a pattern called " Model 2 ", which is a flavor of the Model/View/Controller pattern.

1 Web containers

Like the other Java APIs, different vendors provide their own implementation. Below is a list of some of the free and commercial web containers.

1.1 Non-commercial web containers

1.2 Commercial web containers



Read more »

Non User