Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubts in Writing TLD

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ahve a doubt in the .tld xml file.
If in .tld xml file, I want to write two functions..how can we write it..?

For Example:
I am having class with two static methods(meth1() and meth2()), which will be called by EL in the JSP. Can .tld xml will have more than one uri?
I have to configure this two methods in the .tld file:
Whether below .tld file is correct..?
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just remove the two uri, you should have one <uri> per file.
the two function tags are fine.
if you want to code the funtion in a sepearte tld, write a sepearate tld
with a seperate <uri> and use tow taglib entries in your jsp and the make
a seperate call to your two fuctions

hth
 
Stella Kim
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Niranjan,
So, the two functions have same uri..
Those functions also can have same prefix ?
(I think they can, as long as they have different function name in TLD.)
so, in JSP, we can use only ONE taglib directive to call those functions ?
Or,
The two functions must have two different prefix, and must use two separate taglib directive ?.
[ January 21, 2007: Message edited by: Stella Kim ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic