Servlet 3.0 Features

Servlet 3.0 is released as part of Java EE 6 and is focused at ease-of-use.The web.xml was made as optional as possible

1.Non-blocking I/O – Servlet 3.0 allows asynchronous request
processing.Non-blocking I/O allow to build scalable applications.
2.HTTP protocol upgrade mechanism – This is achieved by adding a new method:
HttpServletRequest.upgrade
3.Security enhancements
4.Relative protocol URL can be specified in
HttpServletResponse.sendRedirect

Servlet API history
Servlet API version Released JSR Number Platform Important Changes
Servlet 4.0 Under development 369 Java EE 8 HTTP/2
Servlet 3.1 May 2013 340 Java EE 7 Non-blocking I/O, HTTP protocol upgrade mechanism ()
Servlet 3.0 December 2009 315 Java EE 6, Java SE 6 Pluggability, Ease of development, Async Servlet, Security, File Uploading
Servlet 2.5 <September 2005 154 Java EE 5, Java SE 5 Requires Java SE 5, supports annotation
Servlet 2.4 November 2003 154 J2EE 1.4, J2SE 1.3 web.xml uses XML Schema
Servlet 2.3 August 2001 53 J2EE 1.3, J2SE 1.2 Addition of Filter
Servlet 2.2 August 1999 902, 903 J2EE 1.2, J2SE 1.2 Becomes part of J2EE, introduced independent web applications in .war files
Servlet 2.1 November 1998 NA Unspecified First official specification, added RequestDispatcher, ServletContext
Servlet 2.0 NA JDK 1.1 Part of Java Servlet Development Kit 2.0
Servlet 1.0 June 1997 NA
Advertisements
Posted in Java | Leave a comment