|Adding Taglibraries to a web app [message #191332]
||Wed, 11 April 2007 13:42
Originally posted by: wknauf_NO_._INSIDE_hg-online.de|
I have read several discussions here on how to add a taglib to a WTP webapp, and
I have heard many times that it is not required to add the TLD file to WEB-INF,
and that it is not required to add a <jsp-config>-element to web.xml.
Only required steps are:
a) add jar file to web-inf\lib
b) add this to the JSP page: <%@ taglib uri="http://java.sun.com/jstl/core"
I found that this is not enough with the JSTL core library (1.2) and JBoss
4.2.0. This one looks for a tld with matching URI in the JAR file and finds
"c-1_0.tld", a really old 1.0 tld which does not allow EL attributes for e.g.
This results in strange errors while running the app. WTP seems to be more smart
here and picks the proper tld ;-).
So, it does not harm to perform all 4 steps to include a taglib ;-).
I filed a JBoss bug report, let's see what will happen.
Powered by FUDForum
. Page generated in 0.28057 seconds