Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Overhead in taglib directives?  RSS feed

Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How much if any overhead is there associated with taglib directives? (ie <%@ taglib uri="" prefix="c" %> )
We have a fairly large project which I have recently joined, and am slowly refactoring to make more maintainable. I'm trying to pull out common pieces of our JSP functionality into JSPF fragments (I realize that saying JSPF fragments is redundant, but so is saying JSP pages - I digress). The problem is that some of the fragments require tag libraries. Rather than trying to update every page to make sure the directive is present, the directive is present in the JSPF. Of course this causes problems if a developer tries to include the taglib on their page if they don't realize an included fragment has already declared the taglib. We are now tossing around the idea of simply creating a fragment that has taglib directives for every taglib we declare in the web.xml file and requiring that this fragment is included on every page (and not anywhere else - such as page fragments).
Is this a bad idea or does anyone else have a better solution?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!