• Post Reply Bookmark Topic Watch Topic
  • New Topic

display-name Must be Declared

 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a taglib.tld like below. When I run the web application, I got Status 500 - XML parsing error on file /WEB-INF/taglib.tld: (line 11, col 17): Element type "display-name" must be declared.

I checked the syntax of the taglib.tld and could not figure out what is wrong with the file. Please help.


[ May 05, 2006: Message edited by: Daniel Gee ]
[ May 05, 2006: Message edited by: Daniel Gee ]
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You checked the syntax? I checked the syntax by downloading the DTD you specified and looking at it. Doesn't mention any "display-name" element. It declares the "tag" element like this:So there's a conflict between the documentation you were reading and the DTD you actually used.
 
Daniel Gee
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response.

In fact, I first ran the web application without the <display-name> inside <tag> and I got the Status 500 - XML parsing error on file /WEB-INF/taglib.tld: (line 11, col 17): Element type "display-name" must be declared.

Nevertheless, I followed your advice. And my taglib.tld looks like below. I am still getting the Status 500 - XML parsing error on file /WEB-INF/taglib.tld: (line 11, col 17): Element type "display-name" must be declared.
 
Paul Clapham
Sheriff
Posts: 21892
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The DTD doesn't define a display-name element anywhere. You could download it yourself and look (just paste its URL into your browser). Are you sure you are using the right DTD?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!