站内搜索: 请输入搜索关键词

当前页面: 开发资料首页业界新闻Servlet 2.5的新特点:适合你的需要吗?

Servlet 2.5的新特点:适合你的需要吗?

摘要: 最近在一篇文章上, Jason Hunter贯穿说明了Servlet标准(目前是维护发行版)的新特点。根据Servlet的标准的重大变化决定了版本号从2.4 跳跃到了2.5。JCP Executive Committee 的成员Hani Suleiman 在他的blog上,描述了他本来希望看到的新特性,但是事实却未能通过。
最近在一篇文章上, Jason Hunter贯穿说明了Servlet标准(目前是维护发行版)的新特点。

根据Servlet的标准的重大变化决定了版本号从2.4 跳跃到了2.5。

在这个发行的标准中, 有四个详细的阐明, 二个对其它文档的改变, 增加了六个主要变化。

很多大的改变是通过使用JDK1.5的新特性带来的。

一个很大的问题就是,为什么JSR为Servlet的 init() 添加了annotations ,带来了init() (@PostConstruct), destroy() (@PreDestroy)等新方法。JCP Executive Committee 的成员Hani Suleiman 在他的blog上,描述了他本来希望看到的新特性,但是事实却未能通过。有意思的是,Hani Suleiman 可是JCP Executive Committee 的成员,JCP Executive Committee 对专家组提交的方案是有最终决定权的。为何Hani Suleiman未能让本来应有的一些变化添加到Servlet标准里呢?

新的特性包括:
Clarification on Session scope for when pages contain more then one session context
the ability to apply a single filter to many requests and many filters to a single request
the ability to create multiple mappings to the same Servlet
Allow the use of alternative HTTP methods with authorization constraints
Support the use of annotations to inject resources into a servlet
Removal of the restriction on not being able to call setStatus() in error handling

这些新特性,是否真的能够满足你的需要?

Servlet论坛:http://www.matrix.org.cn/topic.shtml?forumId=14

详细原文
↑返回目录
前一篇: Apache Geronimo 1.0 Finally 版本发布
后一篇: Apache Tomcat 5.5.15-beta 发布