• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Doubt

 
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) ?
 
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
 
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.
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic