Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

.tld file

 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have one web-inf\app.tld file is available

i configured in web.xml,

<taglib>
<taglib-uri>/WEB-INF/tlds/app.tld</taglib-uri>
<taglib-location>/WEB-INF/tlds/app.tld</taglib-location>
</taglib>

but i got the error in web.xml

invalid content was found starting with element 'taglib'

pls rectify this i am using displaytag

and <disply:table> ----- i got unknow tag error
[ January 24, 2006: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to follow the rules of how a web.xml is laid out. Are you using a 2.3 DOCTYPE or a 2.4 XML Schema declaration for your web.xml.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, I usually recommend not declaring tld files in the web.xml at all. It's better to just use the URI of the tld directly unless you have a good reason to override it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic