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 in tld file 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 in tld file" Watch "error in tld file" New topic
Author

error in tld file

Saranya Sivakumar
Greenhorn

Joined: Aug 09, 2010
Posts: 13
privilager.tld file

<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<tlib-version>1.0</tlib-version>
<short-name>privilager</short-name>
<uri>privilager</uri>
<tag>
<name>check</name>
<tag-class>com.boss.jstl.Privilager</tag-class>
<body-content>empty</body-content>
</tag>
</taglib>


Error :

cvc-complex-type.2.4.b: The content of element 'tag' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":tei-class, "http://java.sun.com/xml/ns/
javaee":body-content}' is expected.


Please help me to solve this error.


Thanks in advance.




Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1016
I don't see any problem with this file.
Neither does my Eclipse.
Your body-content tag is present, and in the right location. but the error message intimates that the computer can't find it.

Where do you get this message?
In an IDE?
While running?

Try re-writing the file from scratch in your editor. My guess would be something to do with file encoding/line endings.

 
wood burning stoves
 
subject: error in tld file
 
Similar Threads
error in tld file
taglib problem in Netbeans
Package Custom Tag Library In Jar File
Tag Library Decriptor Problem