Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Declare .tag files in .tld files

 
Jacob Fenwick
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can I declare .tag files inside a .tld file stored in /WEB-INF/tld, or is it absolutely necessary to declare them in /META-INF/?

I tried declaring a tag file in an existing .tld file stored under WEB-INF like this:



But when I try to compile it says:

C:\workspace\foo\build.xml:346: org.apache.jasper.JasperException: file:C:/works
pace/foo/webroots/common/foo/update/update.jsp(89,12) No tag "savecancelb
uttons" defined in tag library imported with prefix "foo"
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, tag files not packaged in a .jar should reside under the WEB-INF/tags folder. So I can't see anything glaringly wrong with your declaration on quick inspection.

Necessary question: did you restart the app?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the taglib directive you've used in update.jsp ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic