File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Custom tags in jsp - .tld file doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Custom tags in jsp - .tld file doubt" Watch "Custom tags in jsp - .tld file doubt" New topic
Author

Custom tags in jsp - .tld file doubt

Madhawi Maurya
Ranch Hand

Joined: Aug 22, 2007
Posts: 42
Hi friends,
I have created two .tld files. Both has same <uri>, <name> and <function-class> but different <tlib-version>, <function-signature>.

file1:myTld.tld

file2therTld.tld


My problem is that which .tld file will invoke by my jsp uri?

Thanks,
Madhawi


SCJP1.5 with 90%
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

Indeterminate. It is invalid for two TLDs to have the same URI.
[ November 04, 2008: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Madhawi Maurya
Ranch Hand

Joined: Aug 22, 2007
Posts: 42
When I am executing my jsp page, it is not giving any problem and here i am using my otherTld.tld file. my class "DiceRoller.java" is as


and my jsp file "index.jsp"

[ November 04, 2008: Message edited by: Madhawi Maurya ]
 
Don't get me started about those stupid light bulbs.
 
subject: Custom tags in jsp - .tld file doubt