Multiple choice technology programming languages

What are correct statements about creating scripting variables for a Tag::

  1. 1) It is necessary to implement TagExtraInfo interface.

  2. 2) You have to insert into the tag element of the taglib descriptor file an entry for tei-class element.

  3. 3) The interface you have to implement has a method called getVariableInfo.

  4. 4) None of the above.

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

To create scripting variables for a custom tag, you must implement the TagExtraInfo interface and override its getVariableInfo() method. Additionally, you need to declare this implementation in the taglib descriptor file using the tei-class element under the tag element. This combination enables the JSP container to understand and manage the scripting variables exposed by your custom tag.