Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How many uri can have in single .tld file???

 
Prabhat Gupta
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a doubt about how many uri can we decalre in a .tld file?
can we have such .tld file as below:

1.

<taglib ..>
<uri>DiceFunctions1</uri>
<function>
....
</function>
<uri>DiceFunctions2</uri>
<function>
....
</function>
</taglib

2.two .tld file in same web application file1.tld & file2.tld

file1.tld
------------
<taglib ...>
<uri>DiceFunctions</uri>
<function>
.....
</function>
</taglib>

file2.tld
-----------
<taglib ...>
<uri>DiceFunctions</uri>
<function>
.....
</function>
</taglib>

i.e two different file with same <uri> name???

Please put some light here.
 
Ash More'
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well
1) in one .tld file , 0 or 1 uri elements can be there.(however when i tried on tomcat6, i took 2 uri's in the same .tld file.Tomcat tends to select the first uri mentioned in the tld file. whereas the second uri of the same tld file is totally ignored).

2)i also created 2 .tld files and mentioned the same uri in both files. however the behaviour i found was indeterminate. sometimes the first .tld file was selected, while sometimes other. even tried to alphabetically arrange the .tld files (named one file t1.tld and other t2.tld )to see if specific behaviour is observed. however which .tld file the container selects is totally indeterminate.

anyone has any specific information about this, then do reply.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic