Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error in tld file

 
Saranya Sivakumar
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1784
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic