• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubts in Writing TLD

 
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..?
 
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic