• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

Doubt in question of HFSJ - Empty Tags

 
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 ]
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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
 
Hey! You're stepping on my hand! Help me tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic