• 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

cannot find tag library descryptor error

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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




 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic