• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt in question of HFSJ - Empty Tags

 
Pedro Lobato Sena
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a doubt in question 17, pg 557:

17)Given a tag, simpleTag, whose handler is implemented using Simple Tag model and a tag, complexTag, whose handler is implemented using Classic Tag model.
Both tags are declared to be NON-EMPTY in the TLD.
Which JSP code snippets are valid uses of these tag?(Choose all that apply).

a)

This code snippet above is given as a correct answer, but if BOTH tags are supossed to be non-empty, why <my:complexTag /> is valid?

Tnx in advance
[ April 18, 2007: Message edited by: Pedro Lobato Sena ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non empty means that they can also be empty ! A tag whose body-content is not set to "empty" can also be empty.
<bob:say>hello</bob:say>
or
<bob:say />
 
Pedro Lobato Sena
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm, now I understand. Tnx Satou kurinosuke

[]'s
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic