• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Tag Doubt

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic