What are the differences between Servlet 2.5 and 3?

后端 未结 4 1595
不思量自难忘°
不思量自难忘° 2020-12-12 09:49

I\'m rolling J2EE code that adheres to Servlet 2.5 and I\'m wondering what are the major differences between 2.5 and 3. Pointers to official Sun docs and personal experience

4条回答
  •  失恋的感觉
    2020-12-12 10:26

    As Don mentioned, the main areas of improvements and additions are:

    • Pluggability (modularizing of web.xml)
    • Ease of development (annotations, generics, convention over configuration)
    • Async servlet support (for comet style programming, async web proxy, async web services)
    • Security enhancements (programmatic login/logout)
    • Others (HttpOnly Cookie, Session tracking, EJB in WAR file)

    Check out the Javaone 2008 presentation "Java Servlet 3.0 API: What's new and exciting" for details.

提交回复
热议问题