• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in taglib

 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements are true?
a. Custom tags must always be wrapped as a Jar file before they are used
b. To use a tag library it must be configured within the deployment descriptor
c. A JSP page can refer directly to a TLD file within the taglib directive even if it is not in the deplyment descriptor
d. The uri attribute of the JSP taglib directive is mandatory
e. An error will occur if the tagdir attribute does not start with /WEB-INF/tags

answer given ia c,e

why option c is correct

source ->www.examulator.com
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you explain why you disagree or what you do not understand?
 
V Gala
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry
i agree option c is correct

why option e is correct
tagdir can have value liketagdir="META-INF/TAG/ABC/TLD"
 
Ash More'
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well option e seems to be correct.
the path /META-INF/tags is specified in path element as follows:

in a .tld file in a jar file
<tag-file>
<name>some name</name>
<path>the /META-INF/tags/.. goes here</path>
</tag-file>

whereas in the taglib directive, the value of tagdir attribute should start with /WEB-INF/tags
[ April 20, 2008: Message edited by: Ash More' ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic