SlideShare a Scribd company logo
JSF Login Logout Project
-Gagandeep Singh
What this example does
This example demonstrates authentication mechanism and allows users to have secure
access to the application by validating the username and password.
We will be using JSF view for login, DAO object ,HttpSession for session management
and JSF managed bean and Oracle database.
In Next slides you will see step by step how the project grows from organic level to a
full functional Login Logout functionality
Step 1: Create the table Users in
Oracle database
Project Explorer View
Before we move on to our
project related code, below
image shows the project
structure in Eclipse. Just
create a dynamic web project
and convert it to maven to
get the project stub and then
keep on adding different
components.
Step 2: Create Dynamic Web Project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Convert the project to Maven
Download Maven Plugin from Eclipse
Marketplace
In order to convert your dynamic web project to a Maven project you will have to
ensure that the Maven plugin is configured with your IDE. Since we are using
Eclipse Juno, m2e plugin needs to be installed using Eclipse Marketplace
https://marketplace.eclipse.org/content/maven-integration-eclipse-wtp-juno-0
Drag the iinstall from the above link to the current Eclipse Juno workspace
Jsf login logout project
Step 3: Create the login JSF
page login.xhtml
Jsf login logout project
Jsf login logout project
Jsf login logout project
Jsf login logout project
Step 4: Create the managed bean
Login.java
Jsf login logout project
Step 5: Create
the DataConnect.java class
Jsf login logout project
Step 6: Create the LoginDAO.java class
Jsf login logout project
Step 7: Create SessionBean.java
Jsf login logout project
Step 8: Create the authorization filter
class
Jsf login logout project
Step 9: Create admin.xhtml
Jsf login logout project
Step 10: Edit faces-config.xml and
web.xml
Jsf login logout project
Copy ojdbc6.jar in the Tomcat lib folder
Install ojdbc folder from Oracle webstore and copy it on to the Tomcat/lib directory
Run Configuration on Server
Jsf login logout project
Validate the userid and password fields
Jsf login logout project

More Related Content

PPT
Web Services Container
ODP
Application server
PPTX
Application server vs Web Server
PPT
mule real world
DOC
Websphere interview Questions
PPT
Mule real-world-old
PPTX
Anypoint connector dev kit
PPT
Web Servers: Architecture and Security
Web Services Container
Application server
Application server vs Web Server
mule real world
Websphere interview Questions
Mule real-world-old
Anypoint connector dev kit
Web Servers: Architecture and Security

What's hot (18)

PPTX
Web servers
PPT
Web Servers (ppt)
PPTX
Mule ESB
PPTX
Integrating with LinkedIn using Mule ESB LinkedIn Connector
PPTX
Service oriented online architecture using mule
PPT
4. mule real-world-old
PPT
Implementing an Esb using Mule
PPT
Mule execution
PPT
Mule webservices in detail
PPT
Mule Fundamentals
PPTX
Using mule with web services
PPT
Enterprise Software Architecture
PPT
Mule real-world-old
 
PPT
Development using anypointstudio
PPT
Mule execution
PPT
Mule execution
PPTX
Custom connector development using mule DevKit
PPT
Anypoint data gateway
Web servers
Web Servers (ppt)
Mule ESB
Integrating with LinkedIn using Mule ESB LinkedIn Connector
Service oriented online architecture using mule
4. mule real-world-old
Implementing an Esb using Mule
Mule execution
Mule webservices in detail
Mule Fundamentals
Using mule with web services
Enterprise Software Architecture
Mule real-world-old
 
Development using anypointstudio
Mule execution
Mule execution
Custom connector development using mule DevKit
Anypoint data gateway
Ad

Viewers also liked (20)

PDF
Como saber que generador requiero
PDF
Tertiary education, spain
ODP
Football funnies
PPTX
Terápia genética contra el cáncer
PPTX
Алгоритм привлечения клиентов
DOCX
Rollins resume 2
PPT
FlukePad Presenation
PPTX
Presentación de la compañia
PDF
FabSpace 2.0 Presentation - V2.5 - EN
PPTX
Kitchen medico plants By Mr Allah Dad Khan Agriculture Consultant KPK Pakista...
PPTX
Структурирование информации. Краткая вводная
PPT
THE BIG BANG THEORY presentación
PPTX
Introduction to webservices
PPTX
Uso de las redes sociales
PPTX
Маркетинг в социальных сетях
PPTX
Search engine optimization
PDF
Smart Agriculture and the Fruit & Vegetable Industry, The New Face In Sustain...
PDF
Movimiento mecanico de cargas 2
PDF
Sustainable chemistry from tomato skins
PPTX
Kitchen gardening importance of vegetables By Mr Allah Dad Khan Agriculture C...
Como saber que generador requiero
Tertiary education, spain
Football funnies
Terápia genética contra el cáncer
Алгоритм привлечения клиентов
Rollins resume 2
FlukePad Presenation
Presentación de la compañia
FabSpace 2.0 Presentation - V2.5 - EN
Kitchen medico plants By Mr Allah Dad Khan Agriculture Consultant KPK Pakista...
Структурирование информации. Краткая вводная
THE BIG BANG THEORY presentación
Introduction to webservices
Uso de las redes sociales
Маркетинг в социальных сетях
Search engine optimization
Smart Agriculture and the Fruit & Vegetable Industry, The New Face In Sustain...
Movimiento mecanico de cargas 2
Sustainable chemistry from tomato skins
Kitchen gardening importance of vegetables By Mr Allah Dad Khan Agriculture C...
Ad

Similar to Jsf login logout project (20)

PDF
Implementing auto complete using JQuery
PDF
Spring mvc
PPTX
JQUERY TUTORIALS
PPTX
Selenium Training in Chennai Demo Part-2
PPTX
Full Stack_Reac web Development and Application
PPTX
Using galen framework for automated cross browser layout testing
PDF
Using HttpWatch Plug-in with Selenium Automation in Java
PDF
Tech Talk on ReactJS
PPTX
PDF
JOSA TechTalks - Better Web Apps with React and Redux
PPTX
Better web apps with React and Redux
PPT
Jquery
PPTX
Learn Spring Boot With Bisky - Intoduction
PPTX
React Basic and Advance || React Basic
PDF
Asp net-mvc-3 tier
PDF
Developing large scale JavaScript applications
DOCX
Selenium WebDriver FAQ's
PDF
Web works hol
PPTX
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx
Implementing auto complete using JQuery
Spring mvc
JQUERY TUTORIALS
Selenium Training in Chennai Demo Part-2
Full Stack_Reac web Development and Application
Using galen framework for automated cross browser layout testing
Using HttpWatch Plug-in with Selenium Automation in Java
Tech Talk on ReactJS
JOSA TechTalks - Better Web Apps with React and Redux
Better web apps with React and Redux
Jquery
Learn Spring Boot With Bisky - Intoduction
React Basic and Advance || React Basic
Asp net-mvc-3 tier
Developing large scale JavaScript applications
Selenium WebDriver FAQ's
Web works hol
slides oif mlsa oigf fhdhd cgdgd gggd bdg.pptx

More from Gagandeep Singh (6)

PPTX
PPTX
Log4jxml ex
PPTX
Log4jprop example
PPT
PPT
Web Sphere Administration guide – Packaging and Deploying Jee Applications
PPTX
Understanding JSP -Servlets
Log4jxml ex
Log4jprop example
Web Sphere Administration guide – Packaging and Deploying Jee Applications
Understanding JSP -Servlets

Recently uploaded (20)

PDF
KodekX | Application Modernization Development
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Machine learning based COVID-19 study performance prediction
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Empathic Computing: Creating Shared Understanding
PPTX
Cloud computing and distributed systems.
PPTX
Big Data Technologies - Introduction.pptx
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
KodekX | Application Modernization Development
20250228 LYD VKU AI Blended-Learning.pptx
Machine learning based COVID-19 study performance prediction
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Review of recent advances in non-invasive hemoglobin estimation
Spectroscopy.pptx food analysis technology
Programs and apps: productivity, graphics, security and other tools
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Empathic Computing: Creating Shared Understanding
Cloud computing and distributed systems.
Big Data Technologies - Introduction.pptx
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
Chapter 3 Spatial Domain Image Processing.pdf
Unlocking AI with Model Context Protocol (MCP)

Jsf login logout project

  • 1. JSF Login Logout Project -Gagandeep Singh
  • 2. What this example does This example demonstrates authentication mechanism and allows users to have secure access to the application by validating the username and password. We will be using JSF view for login, DAO object ,HttpSession for session management and JSF managed bean and Oracle database. In Next slides you will see step by step how the project grows from organic level to a full functional Login Logout functionality
  • 3. Step 1: Create the table Users in Oracle database
  • 4. Project Explorer View Before we move on to our project related code, below image shows the project structure in Eclipse. Just create a dynamic web project and convert it to maven to get the project stub and then keep on adding different components.
  • 5. Step 2: Create Dynamic Web Project
  • 15. Download Maven Plugin from Eclipse Marketplace In order to convert your dynamic web project to a Maven project you will have to ensure that the Maven plugin is configured with your IDE. Since we are using Eclipse Juno, m2e plugin needs to be installed using Eclipse Marketplace https://marketplace.eclipse.org/content/maven-integration-eclipse-wtp-juno-0 Drag the iinstall from the above link to the current Eclipse Juno workspace
  • 17. Step 3: Create the login JSF page login.xhtml
  • 22. Step 4: Create the managed bean Login.java
  • 24. Step 5: Create the DataConnect.java class
  • 26. Step 6: Create the LoginDAO.java class
  • 28. Step 7: Create SessionBean.java
  • 30. Step 8: Create the authorization filter class
  • 32. Step 9: Create admin.xhtml
  • 34. Step 10: Edit faces-config.xml and web.xml
  • 36. Copy ojdbc6.jar in the Tomcat lib folder Install ojdbc folder from Oracle webstore and copy it on to the Tomcat/lib directory
  • 39. Validate the userid and password fields