Web tier: servlets, JSP, Web frameworks: How to define a local TLD in web.xml (DRY principle!!!)

  1. I entered below section in my web.xml because of not repeating <%@ taglib=blaBla in each jsf page: http://java.sun.com/jsf/core /tld/myfaces_core.tld http://java.sun.com/jsf/html /tld/myfaces_html.tld http://myfaces.apache.org/tomahawk /tld/tomahawk.tld It seems that it does not work for me. Is there another way to achieve my goal? PS: I am using eclipse wtp and my directory schema is such as: MyApp/WebContent/WEB-INF/tld and all tld files are in this tld folder. -Thanks in advance
  2. Just by defining your TLDs in web.xml doesn't mean you don't have to include @taglib on your pages. You still do. It is just a way of including TLDs contained in your web app and being able to refer to them using the taglib uri instead of the file's location. HTH, Thomas
  3. try http://java.sun.com/jsf/core /WEB-INF/tld/myfaces_core.tld