Which two are true?

A custom JSP tag must be able to support an arbitrary number of attributes whose names are
unknown when the tag class is designed. Which two are true? (Choose two.)

A custom JSP tag must be able to support an arbitrary number of attributes whose names are
unknown when the tag class is designed. Which two are true? (Choose two.)

A.
The <body-content> element in the echo tag TLD must have the value JSP.

B.
The echo tag handler must define the setAttribute(String key, String value) method.

C.
The <dynamic-attributes>true</dynamic-attributes> element must appear in the echo tag TLD.

D.
The class implementing the echo tag handler must implement the
javax.servlet.jsp.tagext.IterationTag interface.

E.
The class implementing the echo tag handler must implement the
javax.servlet.jsp.tagext.DynamicAttributes interface.

Explanation:



Leave a Reply 0

Your email address will not be published. Required fields are marked *