Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag question

 
Chinu Hota
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Came across this question in "javaprepare.com" mock exam.
The answer: a,d. short-name and tag are required elements within the tag library descriptor file. is it correct? in HFSJ (page - 389), the TLD shown does not have these elements.

Which of the elements defined within the taglib element of taglib descriptor file are required. Select the two correct answers.
A) short-name
B) description
C) validator
D) tag
E) name
 
Sunder Ganapathy
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tlib-version, jsp-version and short-name have to appear ONLY ONCE.
There must be at least one tag sub-element.
 
singh santosh
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,

I have tried a tag lib discriptor with no tag sub element ,lib-version and short-name but still its working fine (i have also used the taglib in the jsp with the <%@ taglib ..> syntax).
But according to above discussion these two are compulsary .So ,am i wrong somewhere??? (i am using tomcat 5)

regards
-santosh
[ June 25, 2006: Message edited by: singh santosh ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic