GSSP-JAVA · Question #230
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code. <web-app . . . .> <display-name>A Secure Application</display-name><servlet> ... <security-role-ref…
Sign in or unlock GSSP-JAVA to reveal the answer and full explanation for question #230. The question stem and answer options stay visible for context.
Question
Mark works as a Programmer for InfoTech Inc. He develops the following deployment descriptor code. <web-app . . . .> <display-name>A Secure Application</display-name><servlet> ... <security-role-ref > <role-name>Manager</role-name> <role-link>Admin</role-link> </security-role-ref> </servlet> <security-role> <role-name>Programmer</role-name> </security-role> <security-role> <role-name>Admin</role-name> </security-role> <security-role> <role-name>Employee</role-name> </security-role> </web-app> Which of the following is a valid isUserInRole() method call that can be made if request is the HttpServletRequest request?
Options
- Arequest.isUserInRole("Programmer");
- Brequest.isUserInRole("Manager");
- Crequest.isUserInRole("Admin");
- Drequest.isUserInRole("Employee");
Unlock GSSP-JAVA to see the answer
You've previewed enough free GSSP-JAVA questions. Unlock GSSP-JAVA for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.