Review Questions

http://www.smart-soft.com

1: What is the difference between a role and a group?   Answer

2: Of the following 4 tasks, some are defined by J2EE and some are not. So for each of following tasks denote either "J2EE" or "Vendor Specific".

  1. Setup a database of users and groups
  2. Define roles
  3. Map roles to groups
  4. Associate a web-resource-collection with a role
  Answer

3: What method, of the javax.servlet.http.HttpServletRequest class, can be used to determine if the current user has logged on and, if logged on, what his user name is?   Answer

4: What method, of the javax.servlet.http.HttpServletRequest class, can be used to determine if the current user is member of the managers role?   Answer