Assuming that <%@ taglib uri="/utils" prefix="util" %> occurs before the use of the custom tags of the tag library named utils, identify the possibly valid empty custom tag declarations. (Assume that transpose is a valid tag in the given tag library.)
Options
Select 2 correct options.
1).<util:transpose/>
2).<util:transpose></util:transpose>
3).<util:transpose>200</util:transpose>
4).<taglib:util:transpose />
5).None of the above is correct as every tag has to have a body. The correct answer is (2) .Why not also (1) ?
1. <prefix:tagname/> 2. <prefix:tagname></prefix:tagname> and the one containing <jsp:attribute name="">value</jap:attribute> in the body are all correct versions of empty tag