aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Declare .tag files in .tld files" Watch "Declare .tag files in .tld files" New topic
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 60050
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

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: http://aspose.com/file-tools
 
subject: Declare .tag files in .tld files
 
Similar Threads
hfjs question on jstl
Unable to use tag file deployed in jar file
TLD related
custom tags must have a TLD?
taglib-directive tagdir and uri