• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Simple Tags vs Classic Tags

 
Daniel Spaethe
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On page 531 of HFS, it is basically stating that the Container can pool and reuse Classinc tag handlers. It says that you should reset any instance variables in the doStartTag().

I know that Simple tags are not pooled so you don't have this problem, but does that mean each client would get its own instance of the Classic tag? I know with servlets and jsp's, there is only one instance per class and I didn't see anything talking about thread safety when it came to instance variables in Classic tags.

Thanks in advance,

Dan
 
melan hen
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think in classic tags model, you should take care syn issue yourself. Since it is mostly used by page developer, you are not hoping them aware anything about thread or syn.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic