File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes [Marcus Green Mock exam] Q6 exam 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "[Marcus Green Mock exam] Q6 exam 1" Watch "[Marcus Green Mock exam] Q6 exam 1" New topic

[Marcus Green Mock exam] Q6 exam 1

Sebastien French

Joined: Jan 04, 2012
Posts: 26


I've doubts about question 6 of Marcus green first mock exam

first of my doubts, is that not a problem to have a <role-name>manager</role-name> out of <auth-constraint> </auth-constraint> ?

Then I was sure that when you have no <auth-constraint> nor <role-name>, all user authenticated or not could access resources.
But in answer it says :

Although the first auth-constraint is empty, implying no one will have access to the resource, this is cancelled out by the second auth-constraint that will allow anyone to access the resource.

Last but not least please tell me how does it work, if for the same URL you have multiple constraint, which constraint will be used ? the less restrictive ?

Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2096

Hi Sebastien,

A lot of Marcus Greens questions have been discussed here berfore. Check this thread.

I agree. Here's the link:
subject: [Marcus Green Mock exam] Q6 exam 1
jQuery in Action, 3rd edition