New Features of Java Servlet and Servlet 3.0

Source: Internet
Author: User

Java Servlets is a widely accepted technology used to build dynamic content based on web applications; the release of the Servlet 3.0 standard earlier draft version has greatly enhanced the technology in terms of features and Application interfaces (APIS. Java Specification Request (JSR) has been approved in the form of JSR 315 and is planned to be part of Java Enterprise Edition 6 (JSR 316) or later. Unlike some previous version specifications that only maintain the maintenance releases, the Servlet 3.0 specification comes with the most exciting features required in the new web development era. In this article, we will study the main features introduced in the new Java Servlets version. It is worth noting that this specification is still in the draft version phase, so the technical details discussed in this article may change.

The new specifications mainly deliver the following new features:


◆ Simplicity of Development
◆ Pluggable and scalable
◆ Asynchronous support
◆ Enhanced security
◆ Miscellaneous changes

Obviously, compared with other technologies, Java Servlets is widely used in the Java Enterprise Edition family. Servlets retains its simplicity and ability to process HTTP requests and return responses to web clients. Servlets can be used to implement the business logic of simple and small applications. In the web framework, Servlets serves as the entry point for all incoming requests (that is, controller Servlet). Therefore, all popular frameworks are built on the original Servlets. The new feature in Servlet 3.0 aims to simplify Servlet application development and benefit Servlet developers and framework developers. In the following sections, We will detail each new feature and discuss how to use it to develop better applications.

The simplicity of development is a key factor for the success of any technology. Servlet 3.0 APIs use JSR 175 annotations to solve simple development issues and allow developers to adopt Declarative Programming. This means that you can quickly develop a Servlet or filter class by using appropriate annotations such as @ Servlet or @ ServletFilter to annotate the class. Annotations not only make Servlet, filter, and listener classes easier to encode, but also, even if the application archive may contain Servlets, filters, or context listener classes, you can select development and deployment descriptors for web applications. The Web container is responsible for processing various annotations, which are located in each class under the WEB-INF/classes directory, under the WEB-INF/lib directory. jar files, or any class that can be found in the Application class path.

  1. Servlet sharing links in sessions
  2. Configure the Servlet Development Environment
  3. Future Response Servlet features
  4. Tomcat Java Servlet Engine Security Settings
  5. Jetty-Additional Servlet container Functions

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.