Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Overhead in taglib directives?

 
Charles Hasegawa
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="http://java.sun.com/jstl/core" 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic