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 are deprecated in Version 12c as we can now use the standard ones defined by Servlet 3.0 specifications: @WebServlet
, @WebFilter
, and @InitParam
, respectively.
Note
If you're migrating @WLServlet
to @WebServlet
decorations, remember that the...