• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Doubt

 
Ranch Hand
Posts: 579
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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) ?
 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic