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 JSP and the fly likes Error :  Mandatory TLD element jsp-version missing 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 » Java » JSP
Bookmark "Error :  Mandatory TLD element jsp-version missing" Watch "Error :  Mandatory TLD element jsp-version missing" New topic
Author

Error : Mandatory TLD element jsp-version missing

Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

The error i get is : org.apache.jasper.JasperException: Mandatory TLD element jsp-version missing or empty in TLD /WEB-INF/TldFile.tld
Please tell me why this is happening.

Aim : To use tld for jsp. A class can roll a dice and give an int. The method will be called by my jsp. (k&b book)

class


tld file


jsp


SCJP 6. Learning more now.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

The error message is quite clear:
Mandatory TLD element jsp-version missing or empty in TLD /WEB-INF/TldFile.tld


Your tld is missing the required element.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mike Zal
Ranch Hand

Joined: May 04, 2011
Posts: 144

Try changing the opening of the TLD file to


OCJP6, OCWCD5
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

Mike Zal wrote:Try changing the opening of the TLD file to


Thanks a million. . I dont know what those lines mean/do. I never used them in my web.xml and it worked (bear had warned me about this). But it hit me this time.

Is it necessary to know the meaning of those lines ? or just put it there when you work in a real-project ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

Basic XML: they identify the schema against which the XML will be validated.
Rahul Sudip Bose
Ranch Hand

Joined: Jan 21, 2011
Posts: 637

Bear Bibeault wrote:Basic XML: they identify the schema against which the XML will be validated.


I didnt know about "xml schema" until you told me. Now, I read that "An XML Schema describes the structure of an XML document". What does this mean ?
And about validation - what is it validated against ? And where is that "thing" against which xml is validated ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60794
    
  65

That is a more appropriate question for the XML forum as it really has nothing to do with JSP.
 
jQuery in Action, 2nd edition
 
subject: Error : Mandatory TLD element jsp-version missing
 
Similar Threads
EL syntax error
cannot find tag library descryptor error
Trying to use custom actions in jsp - unexpected output
EL Function undefined Error
EL functions - returning a int.