Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Practice exam question

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys, please help me answer this question.



//assume there is role name define for supervisor

Which of the following statements are correct?

A. The servlet code should use "manager" as a parameter in
request.isUserInRole() method.

B. The servlet code can use "manager" or "supervisor" as a
parameter in request.isUserInRole() method.

My answer is letter B because even though you have manager(a fake name) which map to supervisor(original name), there is no conflict between the two names so you can still use both names.

what do you think guys?
Evildoers! Eat my justice! And this tiny ad's justice too!
the value of filler advertising in 2020
    Bookmark Topic Watch Topic
  • New Topic