• 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

Question on taglib, confused!!!!!

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Taglib Question:
Given a tag library with the following tag: a tag called getMunch that has one attribute called hello that is not mandatory.
Which two option are a valid use of this tag in a jsp page.
A.<mT:getMunch>
B.</mT:getMunch>
C.<mT:getMunch></mT:getMunch>
D.<mT:getMunch hello =�one,two�>
E.</mT:getMunch hello =�one,two�>
F.<mT:getMunch hello =�one,two�/>
The answer is D,F
Tell me why F and not a E or ok E give us the error, why not C
Can someone tell explain to me why F and not C
 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Frans
The answer should be C and F. All other options are either opening tags without closing tags or closing tags without opening tags. I do not know why the answer is D and F.
*Bala
 
girl power ... turns out to be about a hundred watts. But they seriuosly don't like being connected to the grid. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic