This scenario is implemented in
Note: In the code distributed with this chapter and the following one, the
logon class is not only initialized with an
admin user (with
admin as a password) but with the following three name/password combinations:
eve/eve, john/john, and
If your run this application and point your browser to
http://localhost:8080, you are presented with a list of accounts. If you have logged in as either john or mike both sales persons you can only alter the accounts owned by each of them. If however, you log in as eve, the sales manager, you can alter the information in all accounts.
The application is simple enough and follows a familiar pattern. ...