65 Marks: 1 Which of the following statements are true? Choose at least one answer. a. Where an attribute implements DynamicAttributes it can be used without being declared in the deployment descriptor b. Using classes that implement DynamicAttributes requires that they be declared in the deployment descriptor c. The body of a simpleTag can be accessed using the getJspBody method d. Simple tags cannot access their body content e. the SimpleTag getJspBody method returns an object of type JspFragment f. the SimpleTag getJspBody method returns an object of type JspBody
Answer is given b,c and e .But i want to know why a is wrong .I think we dont declare about dynamic attribute in DD but declare in .tld file.So a is also correct.Please correct me if i am wrong.
I double-checked, there's no mention of DD configuration for it.
The next step of this tutorial is to discuss how the <formTags:select> custom tag is declared in the TLD. Here is the relevant chunk of the TLD:
<tag> <name>select</name> <tag-class>com.example.taglib.FormSelectTagHandler</tag-class> <body-content>scriptless</body-content> <description> This tag constructs an HTML form 'select' tag. It also generates the 'option' tags based on the set of items in a list passed in by the optionsList tag attribute. </description> <attribute> <name>optionsList</name> <type>java.util.List</type> <required>true</required> <rtexprvalue>true</rtexprvalue> </attribute> <dynamic-attributes>true</dynamic-attributes> </tag>