Learning a few Servlet tricks

The Java Servlet API has been around for quite some time now—more than 10 years—and is the base for technologies such as JavaServer Pages, the one we just discussed. WebLogic Server 12c comes with Java Servlet 3.0, defined by JSR 315, which brings some new features, such as:

  • Annotations support, which helps in easing the task of configuring components
  • Dynamic component registration
  • Asynchronous request processing

Deprecated features

Up to Version 11g, WebLogic Server provides proprietary annotations to ease the development of servlets—instead of declaring them in the web.xml configuration file, you could use the @WLServlet, @WLFilter, and @WLInitParam decorations to set the attributes of servlets and filters. These annotations ...

Get Getting Started with Oracle WebLogic Server 12c: Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.