This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Do we have write seperate .tld files for each EL? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Do we have write seperate .tld files for each EL?" Watch "Do we have write seperate .tld files for each EL?" New topic
Author

Do we have write seperate .tld files for each EL?

Anil Deshpande
Ranch Hand

Joined: Jan 13, 2008
Posts: 117
I am preparing for SCWCD. Very basic question

See the following JSP code


I have written two seperate .tld file for random Number and Random Name EL.

Random Number:


The for Random Name:


Now my question is can i club there two seperate uri in one single tld file rather than two seperate file. When I tried to do that there was an exception saying uri NameFunction is not found.

Please Help me.

regards

Anil Deshpande


Anil Deshpande
SCJP 1.5, SCWCD 1.5
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14672
    
  11

That's one uri per TLD. So it should look like :

and


[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56213
    
  13

Why not put them in a single library?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Anil Deshpande
Ranch Hand

Joined: Jan 13, 2008
Posts: 117
How to do it? Can you give me the code. Just rearrange my existing code as a demonstration.

Please, That would be of great help
Anil Deshpande
Ranch Hand

Joined: Jan 13, 2008
Posts: 117
oh I got it, thanks a lot
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Do we have write seperate .tld files for each EL?
 
Similar Threads
TLD file
Regarding TLD
Custom tags in jsp - .tld file doubt
Strange exception while using EL functions.
can we confuse container by giving wrolg ltd location for a perticular uri