• 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

doubt in taglib

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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' ]
reply
    Bookmark Topic Watch Topic
  • New Topic