• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Which of the following statements are correct regarding tag libraries?

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)

The tag library descriptor for a tag library must be kept in META-INF/taglib.tld, if the tag library is packaged in a jar file

2)

The tag library descriptor for a tag library may be kept in WEB-INF/taglib.tld, if the tag library is packaged in a jar file.

3)

A JSP 2.0 compliant container is guaranteed to generate impliciting mapping for JSTL tag libraries.

4)

A JSP 2.0 compliant container will automatically genarate an implicit tag library for a set of tag files.

5)

The tag library descriptor for a tag library not packaged as a jar file may be kept anywhere in /tld directory of the web application's document root.

Please Advise..i am confused about the answer..
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please quote your sources. Many people refuse to answer questions that are unsourced, and it is not uncommon for questions to be deleted if the source is not provided (especially in the cases where the same person posts many questions without ever listing a source).

Also, you should show some effort. What answer(s) did you think were correct? What did you think was wrong? Why? It is only with this information that someone can start to provide you with help.

- Andrew
 
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amandeep,

I think you have misunderstood the concept behind javaranch. It will help you to grow and learn only if will do some effort at your side. Java ranch will help you to clear the concept if you have any confusion, or help you to start up if you want to learn anything new.

This is quite simple question, if you read the HFSJ chapter 10 or last pages of Chapter 9. you will get the answer of this question. If you still find some difficulties then you can any time come to javaranch, people are here to clear your concept.
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well this question is from Enthuware.

I know its given in HFSJ book, the correct answer is 3.

But in Enthuware the correct answer given us 4. So both are conflicting.

According to me the correct answer is 3.
 
Deepak Chopra
Ranch Hand
Posts: 433
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amandeep,

First you should know the difference between tag handler and tag files.
if you see the tag handler and tag files there is one similarity:
they both are invoked using <prefix:TAGGING>

Now there must be a tag library which help to decide jsp container which method or file to be invoked.

now in case of tag handler we provide a tld file. but in case of tag files we dont provide any thing..! so container has to generate it by its own. Rules doesn't change for tag files. we still need a kind of mapping.
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jain, your answer is right upto some extent... But first you should clear the difference between what is implicit mapping and explicit mapping?

When we define the taglib element and its child elements as tablib-uri and taglib-location, that is called the explicit mapping.

But when we only define the uri in tld files, it is called implicit mapping.

So un case of JSTL tag libraries, if we define, uri through taglib element, then whatever the mapping is generated is called, implicit mapping.

So the option 3 is also right along with 4.

Please do read the 475 page for HFSJ book.
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Finally What is the correct answer.
[ August 19, 2008: Message edited by: Chintu sirivennela ]
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the book, the correct answer given is 4.
 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic