This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HFSJ page 485/562

 
madhuri rajan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

HFSJ-> page 485->Q1 -
TLD files may be placed in any subdirectory of /WEB-INF. -- Correct option

HFSJ-> page 562->Q8 -
Tag file may be placed in any subdirectory of WEB-INF -- Wrong option.

When the option in 485 is considered as correct, shouldn't the one in 562 also be considered as correct? Agreed that the former talks about TLDs and latter about Tags. But still they should be under their specific subdirectories in WEB-INF right?

Am i missing something here?

Thanks,
Madhuri
 
Amit Goyal
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tag files can't be placed in any sub-directory of WEB-INF. It should be placed in tags sub-directory of WEB-INF. So Tag files must be inside WEB-INF/tags directory if not deployed in a jar file.

If deployed in a jar file, then it should be at WEB-INF/lib/yourjarname.jar/META-INF/tags directory.

While on the other hand, TLD files can be placed in any sub-directory of WEB-INF.


-Amit Goyal
[ September 28, 2007: Message edited by: Amit Goyal ]
 
Tarun Yadav
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by madhuri gr:
Hi All,

HFSJ-> page 485->Q1 -
TLD files may be placed in any subdirectory of /WEB-INF. -- Correct option

HFSJ-> page 562->Q8 -
Tag file may be placed in any subdirectory of WEB-INF -- Wrong option.

When the option in 485 is considered as correct, shouldn't the one in 562 also be considered as correct? Agreed that the former talks about TLDs and latter about Tags. But still they should be under their specific subdirectories in WEB-INF right?

Am i missing something here?

Thanks,
Madhuri


Actually, the correct answer for Tag Files is that they can be place in any subdirectory of /WEB-INF/tags and not simply /WEB-INF. So therein lies the difference, the "tags" subdirectory of /WEB-INF is mandatory.
 
Appy Maheshwari
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as i know ......
Tag Files should be kept in /WEB-INF/tags directory or any sub-directory of /WEB-INF/tags
and tlds shud be kept in /WEB-INF or any sub-directory of /WEB-INF
[ September 28, 2007: Message edited by: Appy Maheshwari ]
 
Tarun Yadav
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wow, enthusiastic bunch aren't we? Three replies within as many minutes ( none of us knew the others were also posting, btw )
 
madhuri rajan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you amit. But even TLDs cannot go under some directories like
WEB-INF/Classes, WEB-INF/lib/jar/bar ... right?
 
Amol Nayak
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi madhuri please see this Naming Policy

Posted by madhuri:
I agree with you amit. But even TLDs cannot go under some directories like
WEB-INF/Classes, WEB-INF/lib/jar/bar ... right?


You can put tlds even in these directories there is nothing stopping you from doing this, but its not a good idea.
 
madhuri rajan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer amol..

Thanks,
Madhuri
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic