This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes cannot find tag library descryptor error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "cannot find tag library descryptor error" Watch "cannot find tag library descryptor error" New topic
Author

cannot find tag library descryptor error

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
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

Joined: Jan 10, 2002
Posts: 60785
    
  65

Did you place your TLD (not Tdl ) file under WEB-INF?

It'd also be a good idea to follow standard URI conventions.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1072
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

Joined: Jan 01, 2009
Posts: 874

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

Joined: Jan 10, 2002
Posts: 60785
    
  65

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
lakshmanan anand
Greenhorn

Joined: Jan 13, 2009
Posts: 22
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





http://luckydev07.blogspot.com
 
 
subject: cannot find tag library descryptor error
 
Similar Threads
EL syntax error
problem in TLD
TLD file
Regarding TLD
EL Function undefined Error