Which two correctly invoke the tag within a JSP page?

A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP
page? (Choose two.)

A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP
page? (Choose two.)

A.
<prefix:myTag a=”foo” b=”bar” c=”baz” />

B.
<prefix:myTag attributes={“foo”,”bar”,”baz”} />

C.
<prefix:myTag jsp:attribute a=”foo” b=”bar” c=”baz” />

D.
<prefix:myTag>
<jsp:attribute a:foo b:bar c:baz />
</prefix:myTag>

E.
<prefix:myTag>
<jsp:attribute ${“foo”, “bar”, “baz”} />
</prefix:myTag>

F.
<prefix:myTag>
<jsp:attribute a=”foo” b=”bar” c=”baz”/>
</prefix:myTag>

G.
<prefix:myTag>
<jsp:attribute name=”a”>foo</jsp:attribute>
<jsp:attribute name=”b”>bar</jsp:attribute>
<jsp:attribute name=”c”>baz</jsp:attribute>
</prefix:myTag>

Explanation:



Leave a Reply 0

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