File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag Doubt

 
Manju Devarla
Ranch Hand
Posts: 85
  • 0
  • 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
 
Johan Pelgrim
Ranch Hand
Posts: 105
Android Java Mac
  • 0
  • 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
  • 0
  • 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..
 
warren li
Ranch Hand
Posts: 128
  • 0
  • 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.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic