aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HFSJ page 485/562 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HFSJ page 485/562" Watch "HFSJ page 485/562" New topic
Author

HFSJ page 485/562

madhuri rajan
Greenhorn

Joined: May 07, 2007
Posts: 28
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

Joined: Feb 21, 2006
Posts: 95
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

Joined: Sep 20, 2007
Posts: 134
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

Joined: Sep 27, 2007
Posts: 13
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

Joined: Sep 20, 2007
Posts: 134
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

Joined: May 07, 2007
Posts: 28
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

Joined: Oct 26, 2006
Posts: 218
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

Joined: May 07, 2007
Posts: 28
Thanks for the answer amol..

Thanks,
Madhuri
 
Consider Paul's rocket mass heater.
 
subject: HFSJ page 485/562