• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on taglib, confused!!!!!

 
Frans Ntsowe
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • 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
 
Balamurugan Muthiah
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic