What’s New in Java Servlet API 2.2?

This article describes what’s new in version 2.2 of the API, explains the decision-making process behind the changes, and demonstrates how to write servlets using API 2.2 features. To keep the article somewhere near a reasonable length, I’m going to assume that you’re familiar with the classes and methods of previous versions of the Java Servlet API. If that’s not the case, you can peruse Resources for links to sites that will help get you up to speed.

Java Servlet API 2.2 includes many enhancements that make servlets more powerful than ever:

  • Servlets are now part of the Java 2 Platform, Enterprise Edition specification
  • Servlets now embrace the notion of pluggable Web applications, which can be configured and deployed in a server-independent manner
  • Rules have been provided that define how servlets can be distributed across multiple back-end servers
  • Response output buffering has been added
  • Control over HTTP headers has been enhanced
  • New styles of request dispatching have been added
  • More advanced error handling can now be used
  • Several method signatures have been changed to keep the API consistent

To Read More Pleae Visit Java.Sun.com