aspose file tools*
The moose likes JSP and the fly likes Multiple uri descriptors in single TLD Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Multiple uri descriptors in single TLD" Watch "Multiple uri descriptors in single TLD" New topic
Author

Multiple uri descriptors in single TLD

Trivikram Kamat
Ranch Hand

Joined: Sep 26, 2010
Posts: 155
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?


OCPJP6
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

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 ?


[My Blog]
All roads lead to JavaRanch
Trivikram Kamat
Ranch Hand

Joined: Sep 26, 2010
Posts: 155
Christophe Verré wrote:
Why do you want to have several uris ?

Just to reduce the number of TLD files, if possible...
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Then put all your tags in the same TLD.
Trivikram Kamat
Ranch Hand

Joined: Sep 26, 2010
Posts: 155
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multiple uri descriptors in single TLD