• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt

 
agrah upadhyay
Ranch Hand
Posts: 579
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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) ?
 
Mike Pandey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who says it is not correct?

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
 
Priya Jothi
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the question itself it is given clearly that u've to choose 2 options..then obviously 1 & 2 are correct.

Regards,
Priya.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic