• 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

Doubt in question of HFSJ - Empty Tags

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm, now I understand. Tnx Satou kurinosuke

[]'s
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic