Discussions
Web tier: servlets, JSP, Web frameworks: How to define a local TLD in web.xml (DRY principle!!!)
-
How to define a local TLD in web.xml (DRY principle!!!) (2 messages)
- Posted by: Ach Roshanayi
- Posted on: August 09 2006 06:00 EDT
I entered below section in my web.xml because of not repeating 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 advanceThreaded Messages (2)
- Re: How to define a local TLD in web.xml (DRY principle!!!) by Thomas Jachmann on August 09 2006 07:11 EDT
- Re: How to define a local TLD in web.xml (DRY principle!!!) by yujun liang on August 09 2006 19:36 EDT
-
Re: How to define a local TLD in web.xml (DRY principle!!!)[ Go to top ]
- Posted by: Thomas Jachmann
- Posted on: August 09 2006 07:11 EDT
- in response to Ach Roshanayi
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 -
Re: How to define a local TLD in web.xml (DRY principle!!!)[ Go to top ]
- Posted by: yujun liang
- Posted on: August 09 2006 19:36 EDT
- in response to Ach Roshanayi
try http://java.sun.com/jsf/core /WEB-INF/tld/myfaces_core.tld