• Post Reply Bookmark Topic Watch Topic
  • New Topic

How To Specify the uri in taglib Directive

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I put a trail-taglib-0.2.jar file in the MyApplication/WEB-INF/lib directory.

Because the META-INF/taglib.tld is included in the trail-taglib-0.2.jar, I added the following in the MyApplication/WEB-INF/web.xml file:


How do I specify the uri in my JSP @taglib to point to that jar file? I think I did not get the path right:


[ May 03, 2006: Message edited by: Daniel Gee ]

[ May 03, 2006: Message edited by: Daniel Gee ]
[ May 03, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Daniel Gee:
Because the META-INF/taglib.tld is included in the trail-taglib-0.2.jar, I added the following in the MyApplication/WEB-INF/web.xml file:


What does a filter declaration and mapping have to do with taglibs and tld files?

How do I specify the uri in my JSP @taglib to point to that jar file?


The URI must match the URI specified within the tld file. The location of the tld file and whether or not it is in a jar file is irrelevant.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!