Are Classic Tag Handlers thread safe? HFSJ mentions [pg 837 second edition] that they are thread safe. Is it right? Because container may re-use the classic tag handler instances if there are multiple occurrences of the tag with same attribute values in same page or different jsp pages. In that case, same instance variables may get updated by multiple threads at the same time.
Is HFSJ incorrect? can anyone clarify this?
posted 8 years ago
Each instance will handle a tag occurrence. It is like wen you have two String instances or two Book instances each instance will have its own data members. so there are no thread issues here.