• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple uri descriptors in single TLD

 
Trivikram Kamat
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it's not possible to declare multiple <uri> descriptors in single TLD file.
I went through some TLD files in JSTL API, and all of them have single <uri> descriptor per file.

On accessing the JSP file using SimpleTags2 uri, Tomcat7 gives JasperException: File "/SimpleTags2" not found where the tld is as follows:


/SimpleTags1 is found in the concerned JSP page.

If it's possible to declare multiple <uri> descriptors in single TLD file, how it can be done?
If it's not possible, why is it so?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The uri is used to identify the library, not tags within the library. So there's only one uri. Why do you want to have several uris ?
 
Trivikram Kamat
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:
Why do you want to have several uris ?

Just to reduce the number of TLD files, if possible...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Then put all your tags in the same TLD.
 
Trivikram Kamat
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Christophe Verré wrote:
Then put all your tags in the same TLD.


Thanks. That's a good solution.
But, if I want those tags in different libraries, I need to have separate TLD file for each library.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic