- In this video, we're going to manage the sessions…across some pages.…Let's go into the dashboard file…and then let's create the session management part.…In this file, we're gonna go and create a tag…at the top here in line seven.…The idea is basically to lock the dashboard,…the edit, and the add pages from unauthorized users,…so we only allow the admin,…or whoever is logged into the admin page…to view these pages.…If they're not, then they should be redirected…back to the index page or to the login page.…
Right here in line eight, I'm going to create a renderer…to verify if a user is logged in or not.…So we do that by using a f:metadata tag,…and in here I'm going to go ahead and create the event.…The event is gonna be of type prerender view.…You need to put this above the head section,…so we want to check the login first.…
If it's successful, then go ahead…and render the rest of the page.…Otherwise just reroute the user back to the login page.…That is why we need to have a type of prerender view.…Then the listener we need to say…
- Setting up JSF
- JSF class creation
- Preparing lists of data
- Configuring source files
- Building UI components
- Building interface menus
- Displaying data-bound table components
- Adding, viewing, updating, and deleting data
- Displaying messages and message tags
- Validating data in a form
- Setting session attributions
- Authenticating permissions across JSF pages
Skill Level Intermediate
Java EE: Servlets and JavaServer Pages (JSP)with Ketkee Aryamane6h 14m Intermediate
Java Persistence API (JPA): 1 The Basicswith Kesha Williams1h 31m Intermediate
1. Setting Up the JSF Application
2. Configuring the Front End
3. Performing CRUD Operations
4. Localized Messages and Form Validation
5. Session Management and Authentication
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.