• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic