• 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

HFSJ Page No.501 - TagFiles

 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HFSJ PageNO.501 - Memorizing Tag Files

Question no.2
Fill in what would you must put into a tag file to declare that the tag must NOT have a body?

Ans-Given: <%@ tag body-content="tagdependant" %>
My ans : <%@ tag body-content="empty" %>

Why am I wrong??


Question no.3
Draw a tag file doc in each of the locations where the container will look for tag files?

Ans-given : web-inf/tags/
web-inf/tags/moretags/
web-inf/lib/<jar>/meta-inf/tags/
web-inf/lib/<jar>/meta-inf/tags/mytags/
web-inf/lib/<jar>/meta-inf/TLDs/

My ans : web-inf/tags/
web-inf/tags/moretags/
web-inf/lib/<jar>/meta-inf/tags/
web-inf/lib/<jar>/meta-inf/tags/mytags/

how come "web-inf/lib/<jar>/meta-inf/TLDs/" came into picture??
 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According with my book in the question 1 (page 501) the answer given is exactly equal yours. "empty".

Cocerning the TLDs folder:
When you use tagfiles inside a jar you must have a TLD
(page 499)
"IF the tag file is deployed in a JAR, there MUST be a TLD for the tag file.

I hope it is a help.

Regards.
 
Mauricio Andrade
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One more thing,

Probably my book was pressed after your and does not have these error.

Bye.
 
Pallavi ch
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic