request,response,out这些是线程安全的,只跟一个请求线程相关;
pageContext也只跟一个请求线程相关,pageContext itself is thread safe, but not if you set session or application attributes with it;
config是一个jsp页面一个,config is shared between calls to the JSP but there's no method in the ServletConfig class which might create problems,所以config也可以认为是线程安全的。
page指的是这个jsp的servlet instance,一个jsp页面一个,由于其可能存在instance variable等,所以不线程安全;
session不线程安全,每个session一个;
application也不线程安全,整个application一个。
pageContext也只跟一个请求线程相关,pageContext itself is thread safe, but not if you set session or application attributes with it;
config是一个jsp页面一个,config is shared between calls to the JSP but there's no method in the ServletConfig class which might create problems,所以config也可以认为是线程安全的。
page指的是这个jsp的servlet instance,一个jsp页面一个,由于其可能存在instance variable等,所以不线程安全;
session不线程安全,每个session一个;
application也不线程安全,整个application一个。