找考题网-背景图
多项选择题

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? ()

A. A  element in the echo tag LTD must have the value JSP
B. The echo tag handler must define the setAttribute (String key, String value) method
C. The true element must appear in the echo tag TLD
D. The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface
E. The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface

热门试题

单项选择题The tag handler for n:recurse extends SimpleTagSupport.Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?()

A. It is impossible to determine the deepest nesting depth because it is impossible for tag handlers that extend SimpleTagSupport to communicate with their parent and child tags
B. Create a private non-static attribute in the tag handler class called count of type int initialized to      oIncrement count in the doTag method. If the tag has a body, invoke the fragment for that body. Otherwise, output the value of count
C. Start a counter at 1. Call getChildTags(). If it returns null, output the value of the counter.      Otherwise, increment counter and continue from where getChildTags() is called. Skip      processing of the body.
D. If the tag has a body, invoke the fragment for that body. Otherwise, start a counter at 1. Call      getParent(). If it returns null, output the value of the counter. Otherwise, increment the counter      and continue from where getParent() is called.