суббота, 2 февраля 2013 г.

сервер для java servlets

The Servlet specification was created by , with version 1.0 finalized in June 1997. Starting with version 2.3, the Servlet specification was developed under the . JSR 53 defined both the Servlet 2.3 and JavaServer Page 1.2 specifications. JSR 154 specifies the Servlet 2.4 and 2.5 specifications. As of March 26, 2010, the current version of the Servlet specification is 3.0.

Servlets can be generated automatically from (JSP) by the . The difference between Servlets and JSP is that Servlets typically embed HTML inside Java code, while JSPs embed Java code in HTML. While the direct usage of Servlets to generate HTML (as shown in the example below) has become rare, the higher level MVC web framework in Java EE ( ) still explicitly uses the Servlet technology for the low level request/response handling via the FacesServlet. A somewhat older usage is to use Servlets in conjunction with JSPs in a pattern called " ", which is a flavor of the pattern.

A is an that receives a request and generates a response based on that request. The basic Servlet package defines Java objects to represent Servlet requests and responses, as well as objects to reflect the Servlet's configuration parameters and execution environment. The package defines -specific subclasses of the generic servlet elements, including session management objects that track multiple requests and responses between the web server and a client. Servlets may be packaged in a as a .

The Servlet , contained in the hierarchy , defines the expected interactions of the web container and a servlet.

To deploy and run a Servlet, a must be used. A web container (also known as a Servlet 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 an URL to a particular Servlet and ensuring that the URL requester has the correct access rights.

A Servlet is a Java-based web technology. Technically speaking, a Servlet is a in that conforms to the , a protocol by which a Java class may respond to requests. Servlets could in principle communicate over any protocol, but they are most often used with the . Thus "Servlet" is often used as shorthand for "HTTP Servlet". Thus, a may use a servlet to add to a using the . The generated content is commonly , but may be other data such as . Servlets can maintain in variables across many server transactions by using , or .

A Servlet is a used to extend the capabilities of a . Although servlets can respond to any types of requests, they are commonly used to extend the applications hosted by , so they can be thought of as that run on instead of in . These kinds of servlets are the counterpart to non-Java dynamic Web content technologies such as and .

Комментариев нет:

Отправить комментарий