• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 '{"http://java.sun.com/xml/ns/j2ee":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??
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic