Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

cannot find tag library descryptor error

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my java class



this is my Tdl file


this is my jsp.
[code]
<%@ taglib prefix="mine" uri="DiceFunctions"%>
<html><body>
${mine:rollIt()}
</body></html>
[code]
in the jsp file there are two errors.
first one shows at " uri="DiceFunctions"% ".
error is cannot find tag library descryptor

and second one is " ${mine:rollIt()} "
EL syntax error.
this example is get by an ebook.
 
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you place your TLD (not Tdl ) file under WEB-INF?

It'd also be a good idea to follow standard URI conventions.
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes .I am using eclips as IDE.
My TDL file is in WEB-INF derectory.
my java class is in WEB-INF/classes/foo
my jsp is in WebContemt folder.
then where is the error?
 
Ranch Hand
Posts: 874
Android VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

aruna sameera wrote:yes .I am using eclips as IDE.
My TDL file is in WEB-INF derectory.
my java class is in WEB-INF/classes/foo
my jsp is in WebContemt folder.
then where is the error?




repeat : Its tld not TDL or tdl or other combinations.
Save the file with .tld extension.
 
Bear Bibeault
Marshal
Posts: 67415
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the solution for it....

I am also using eclipse

You should add another element in the tld file. That element is <jsp-version> . It seems it is mandatory. So add that as given below. Still eclipse "will" show a syntax error. Ignore that. Restart tomcat and run the file. You will get the output. I got it.
Not <jsp-verison> element below/
The tld file is




 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic