| Author |
HFSJ Page No.501 - TagFiles
|
Lavanya ch
Ranch Hand
Joined: Dec 16, 2004
Posts: 75
|
|
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
Joined: Aug 31, 2006
Posts: 24
|
|
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<br />SCJP 1.4 (91%)<br />SCWCD 1.4 (95%)<br />SCBCD 1.3 (94%)
|
 |
Mauricio Andrade
Greenhorn
Joined: Aug 31, 2006
Posts: 24
|
|
One more thing, Probably my book was pressed after your and does not have these error. Bye.
|
 |
Lavanya ch
Ranch Hand
Joined: Dec 16, 2004
Posts: 75
|
|
|
Thanks.
|
 |
 |
|
|
subject: HFSJ Page No.501 - TagFiles
|
|
|