aspose file tools*
The moose likes JSP and the fly likes Declare more than one tag-file inside one .tld file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Declare more than one tag-file inside one .tld file" Watch "Declare more than one tag-file inside one .tld file" New topic
Author

Declare more than one tag-file inside one .tld file

Mahmoud Abdulmoniem
Greenhorn

Joined: Jul 14, 2010
Posts: 6

Hi everyone,

i have my tag files and .tld files packed in a single jar file

Here is the .tld file :



and here are the 2 tag files :

header.tag



selectElement.tag



Now, the problem is as the following :

whenever i'm trying to invoke the header tag from a JSP like this :


it gives the following error :

Multiple annotations found at this line:
- Missing required attribute
"name"
- Missing required attribute "size"
- Missing required attribute
"optionList"
- Tag (app:headerFile) must be
empty


it asks for attributes defined for the other tag file.

i tried to create 2 different .tld files and declare one tag-file per each, but i got the same problem.

appreciate your help regarding this problem


OCPJP 6 (95%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Declare more than one tag-file inside one .tld file
 
Similar Threads
Simple Tag with Attribute
Nested .tag files problem
Dynamic attribute in Tag File
setDynamicAttribute not being invoked
Doubt in JSP Custom tags (Simple Tag) in Dynamic Drop Down