• 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 Doubt

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the elements defined within the taglib element of taglib descriptor file are required. Select the two correct answers.

a.tlib-version
b.jsp-version
c.uri
d.display-name

its a and b right..these are the 2 elements which come under taglib

But in the mock exam java beat, its a & c
 
Ranch Hand
Posts: 105
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I checked the tldTaglibType ComplexType in http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd, there you can see that tlib-version and short-name are required and uri is optional! So none of the answers are correct. Is the mock exam covering the right spec?

This is also displayed in picture "Figure JSP.C-1 TLD Schema Element Structure" (3-16) on page 400 of jsp-2_0-fr-spec.pdf
 
Manju Devarla
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think answers a & b are correct based on the page 428 of jsp-2_0-fr-spec

Can anyone confirm with this..
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think only A is correct.There is no jsp-version at all.

The mandatory ones according to the jsp spec is tlib-version and short-name.
uri is not mandatory, the container can find the location of the tags in some other ways without uri.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guess what, I think you're looking at an old mock using version 1.2 of the DTD. In version 2.0, only tlib-version and short-name are mandatory.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic