• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

tag-lib... which are the correct elements to use?

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my readings, i have noticed that there are two sets of tag-lib elements with the following sub-elements.
Which is the correct one? that is.. if a question in an exam requires me to answer the sob-element uri.. should i put down taglib-uri, or uri??
<!ELEMENT taglib (taglib-uri,taglib-location )>

<!ELEMENT taglib (tlib-version, jsp-version, short-name, uri?, display-name?,
small-icon?, large-icon?, description?, validator?, listener*, tag+) >

please help.. and what is the difference between the two that i have described above?
 
Ranch Hand
Posts: 150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

The first is used in the web app's deployment decriptor, web.xml, to declare a tag library and say where it's descriptor is.
The second form is used in the tag library descriptor (TLD) that you declared above. The TLD gives info about the tags that the library contains.
 
reply
    Bookmark Topic Watch Topic
  • New Topic