We can then add a role name and an optional description. After clicking the
OK button, we can see our newly added security role in the NetBeans web.xml
Our application requires two security roles, admin and user, the proce-
dure to add each security role is identical, therefore adding the user role
is not shown.
Next, we need to specify what roles have access to what pages. We can do this by
clicking on the Add Security Constraint button.
It is recommended to modify the default for the Display Name field, giving it a
descriptive value. We then need to specify the pages that belong to our security
constraint, we do this by clicking on the Add... button under the Web Resource