This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Should each TLD be in different *.tld file ?

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I had two different TLD in the same *.tld file .But the i was not able to use the second tld.
I was not sure what the prolem was. I was getting the following error.
org.apache.jasper.JasperException: File "/FirstCustomTag" not found


Below is the *.tld file





I changed the second tld in to different file and executed. Then it worked fine without any change in the file content.
Can't we write more than one tld in a *.tld file???
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It says the file wasn't found--without any more information I'm going to say that the file wasn't found, and there was a user or deployment error.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you saying TLD when you mean "tag"?

Of course you can only have one TLD in a TLD. That's like saying "can I have two files in one file?" Makes no sense.

The TLD is the tag library itself -- you can define as many tags as you want within a TLD.
 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the delayed reply...
@Bear Bibeault
I actually meant tag....

I am still with the same problem....
If i remove the below part of the tag from the tld.. everything works fine.. the removed part is not related to the currently used custom tag .

Here is the JSP content:
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The URI doesn't match.
 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry i changed to test some thing.... (have updated in the previous post NOW)
But the problem still exists
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wait, do you have multiple URIs in that TLD file?!
 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David Newton wrote:Wait, do you have multiple URIs in that TLD file?!

Now i understood whats is the problem. I was using a <uri> for each of the tags. And now i understand there should be only one uri in A tld file.

Thanks, David Newton, correct me if i am wrong
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's correct, you can only have one unique URI in a TLD. I'm surprised your container didn't throw an exception or something, actually.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic