Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cannot find tag library descryptor error

 
sam liya
Ranch Hand
Posts: 1240
  • 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.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64856
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
sam liya
Ranch Hand
Posts: 1240
  • 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?
 
Balu Sadhasivam
Ranch Hand
Posts: 874
Android Java VI Editor
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64856
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
lakshmanan anand
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




 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic