Setting up pages

We have a few trivial pages. I don't want to paste the code in here, as it is quite self-explanatory:

  • login.jsp: Our custom login page, which is used to collect username and password from the end user.
  • user.jsp: The page that is set as root in the sample. After login, the user is navigated to this page. We just print the session ID and also the username to showcase the login.
  • moresecured.jsp: This is just to showcase how the role of the user matters. This page can only be accessed by a user having the ADMIN role.
  • noaccess.jsp: When the user doesn't have access to any page, this dummy page comes in for the user.

A full sample project can be found in the book’s GitHub page within the jetty-jaas-authentication project.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.240.252