File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ Page No.501 - TagFiles

 
Pallavi ch
Ranch Hand
Posts: 76
  • 0
  • Mark post as helpful
  • send pies
  • 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??
 
Mauricio Andrade
Greenhorn
Posts: 24
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic