Which of the following statements are true about the taglib directive? [Check all correct answers]
1. The uri element can only contain an absolute URI that identifies a tag library.
2. The uri element can only contain a relative URI that identifies a tag library.
3. The prefix element indicates a unique
string.
4. The following prefixes cannot be used:
java,
servlet and sun.
5. If the uri contains an absolute path to a jar file then all handler classes should be included in the jar file and cannot be defined in the web-application classpath.
The Answer is given as
Answer 3, 4 and 5 are correct.
Answer 1 and 2 are incorrect, the uri elements can contain an absolute or relative path that identifies the tag library descriptor.
Answer 3 is correct, the unique string is used in the <prefix:tagname> declaration.
Answer 4 is correct, the following prefixes are reserved and cannot be used:
jsp, jspx, java, javax, servlet, sun and sunw.
Answer 5 is correct, all classes and TLD file must be located in the Jar file.
-----------------------------------------
Can any one tell is the option 5 is true.
if the uri contains the absolute path to the jar is that it is neccessary to have handler classes to be inside the jar
-selva