aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Marcus Green exam: Dueling auth-constraint elements 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 "Marcus Green exam: Dueling auth-constraint elements" Watch "Marcus Green exam: Dueling auth-constraint elements" New topic
Author

Marcus Green exam: Dueling auth-constraint elements

Jan Sterk
Ranch Hand

Joined: Jun 06, 2008
Posts: 139
This is Q6 of Marcus Green's first mock exam, together with the given answers:



But according to HFSJ, p.639 (1st ed.), rule 3, 'E' is the right answer, because an empty auth-constraint tag overrules everything.

I also tried it myself, and indeed an empty auth-constraint tag will always deny access. It doesn't even bother to authenticate!

Btw, apart from the above, the Marcus Green exam is excellent and well recommended!

[ August 01, 2008: Message edited by: Jan Sterk ]
[ August 01, 2008: Message edited by: Jan Sterk ]

SCJP 1.4 (81%)<br />SCWCD 5 (95%)
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
I think E is correct answer according to HFSJ.
[ August 03, 2008: Message edited by: Chintu sirivennela ]

SCJP 5 |SCWCD 5| Started thinking about Web Services ?
vijaya bharath
Ranch Hand

Joined: Jun 10, 2005
Posts: 66
Hi,

Let me clear you on this
empty tag means which doesn't have any body,so the following might be empty tags
.Even if you have space between opening and ending tag also that will be considered as body.
Here if you observe the tag is declared with a carraige return,so it doesn't be considered as an empty tag.
Correct me if i am wrong.


Regards,<br />Vijaya Bharath.<br />SCJP1.4 <br />SCWCD5.0
Jan Sterk
Ranch Hand

Joined: Jun 06, 2008
Posts: 139
Vijaya, I think all white space is ignored in any XML. Please check the answers (last sentence) that are included in the code block above. It says that the first auth-constraint tag is empty.
[ August 04, 2008: Message edited by: Jan Sterk ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Marcus Green exam: Dueling auth-constraint elements