Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding JSP Custom Tags-performance issue  RSS feed

 
Vasanth Babu Raju
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By using SimpleTagSupport, the tag handler class is not reused(For every tag call, the handler class is loaded, instanciated,doTag() called, object garbage collected).

But if we use classic tag, the tag handler instance is reused in pool.

So is using classic custom tag better than using SimpleTagSupport -on performance perspective?
 
Musab Al-Rawi
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Classic tag are more error pron as you have to initialize your instance variables in appropriate method, they are more complicated to develop that's for sure.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!