Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Custom tags in jsp - .tld file doubt

 
Madhawi Maurya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeterminate. It is invalid for two TLDs to have the same URI.
[ November 04, 2008: Message edited by: Bear Bibeault ]
 
Madhawi Maurya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic