File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem creating a URI for a tld in the web.xml

Rama Krishna
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am unable to add a .tld files' URI in the web.xml file so that I can start using it in a .jsp file.

I get the following error:
<!-- SeverityDescriptionResourceIn FolderLocationCreation TimeId
2cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'.
One of '{"":description,
is expected.

when using the web.xml in a workshop/weblogic environment. I was also wondering how to create these entries automatically in web.xml?

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"





Any suggestion or help in this regards will be appreciated!

Can we create entries into web.xml automatically or create a .tld file in weblogic/workshop??
Carol Enderlin
Ranch Hand
Posts: 1364
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you take a look at the servlet specification, you will see that the taglib element is a sub-element of jsp-config in 2.4 spec.

There's a link to the specification in the ServletsFaq

16. jsp-config Element
Thejsp-config is used to provide global configuration information for the JSP
files in a web application. It has two sub-elements,taglib andjsp-property-
group. Thetaglib element can be used to provide information on a tag library
that is used by a JSP page within the Web application. See JavaServer Pages
specification version 2.0 for detail.

[ November 11, 2007: Message edited by: Carol Enderlin ]
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic