File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Declare .tag files in .tld files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Declare .tag files in .tld files" Watch "Declare .tag files in .tld files" New topic

Declare .tag files in .tld files

Jacob Fenwick
Ranch Hand

Joined: Apr 28, 2006
Posts: 55
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

Joined: Jan 10, 2002
Posts: 63532

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?

[Asking smart questions] [About Bear] [Books by Bear]
Christophe Verré

Joined: Nov 24, 2005
Posts: 14688

Can you post the taglib directive you've used in update.jsp ?

[My Blog]
All roads lead to JavaRanch
I agree. Here's the link:
subject: Declare .tag files in .tld files
It's not a secret anymore!