wood burning stoves*
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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%)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Declare more than one tag-file inside one .tld file