首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

Tomcat5.5 JSP isTheadSafe属性设立无效

2012-07-30 
Tomcat5.5 JSP isTheadSafe属性设置无效JSP 2.0 specification 对isThreadSafe 属性有说明Note: The Servl

Tomcat5.5 JSP isTheadSafe属性设置无效
JSP 2.0 specification 对
isThreadSafe 属性有说明

Note: The Servlet 2.4 speci?cation deprecates
SingleThreadModel, which is the most common
mechanism for JSP containers to implement isThreadSafe.
Page authors are advised against using isThreadSafe, as
the generated Servlet may contain deprecated code.

Tomcat 5.5是Servlet 2.4 / JSP2.0的实现。当isThreadSafe=false时,生成的JSP class中实现了 SingleThreadModel接口,但这个接口已被废弃,tomcat的源码中没有使用到这个接口,所以isThreadSafe也相当于废弃无用了

热点排行