This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes .tld file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark ".tld file" Watch ".tld file" New topic

.tld file

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
i have one web-inf\app.tld file is available

i configured in web.xml,


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 ]

Thank You<br />Edward
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60766

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.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60766

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: .tld file
Similar Threads
namespaces, rdf and forEach
struts taglib issue
struts defn in web.xml
Struts taglibs - references - doubt
regarding updating web.xml with struts1.1