SlideShare uma empresa Scribd logo
1 de 40
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
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
Step 3: Create the login JSF
page login.xhtml
Step 4: Create the managed bean
Login.java
Step 5: Create
the DataConnect.java class
Step 6: Create the LoginDAO.java class
Step 7: Create SessionBean.java
Step 8: Create the authorization filter
class
Step 9: Create admin.xhtml
Step 10: Edit faces-config.xml and
web.xml
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
Validate the userid and password fields
Jsf login logout project

Mais conteúdo relacionado

Mais procurados

Integrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn ConnectorIntegrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn ConnectorRupesh Sinha
 
Service oriented online architecture using mule
Service oriented online architecture using muleService oriented online architecture using mule
Service oriented online architecture using mulemdfkhan625
 
Implementing an Esb using Mule
Implementing an Esb using MuleImplementing an Esb using Mule
Implementing an Esb using MuleAbdulImrankhan7
 
Mule webservices in detail
Mule webservices in detailMule webservices in detail
Mule webservices in detailShahid Shaik
 
Mule Fundamentals
Mule FundamentalsMule Fundamentals
Mule FundamentalsKhasim Cise
 
Using mule with web services
Using mule with web servicesUsing mule with web services
Using mule with web servicesShanky Gupta
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecturerahmed_sct
 
Mule real-world-old
Mule real-world-oldMule real-world-old
Mule real-world-oldF K
 
Development using anypointstudio
Development using anypointstudioDevelopment using anypointstudio
Development using anypointstudiohimajareddys
 
Custom connector development using mule DevKit
Custom connector development using mule DevKitCustom connector development using mule DevKit
Custom connector development using mule DevKitRamakrishna Narkedamilli
 

Mais procurados (18)

Web servers
Web serversWeb servers
Web servers
 
Web Servers (ppt)
Web Servers (ppt)Web Servers (ppt)
Web Servers (ppt)
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Integrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn ConnectorIntegrating with LinkedIn using Mule ESB LinkedIn Connector
Integrating with LinkedIn using Mule ESB LinkedIn Connector
 
Service oriented online architecture using mule
Service oriented online architecture using muleService oriented online architecture using mule
Service oriented online architecture using mule
 
4. mule real-world-old
4. mule real-world-old4. mule real-world-old
4. mule real-world-old
 
Implementing an Esb using Mule
Implementing an Esb using MuleImplementing an Esb using Mule
Implementing an Esb using Mule
 
Mule execution
Mule executionMule execution
Mule execution
 
Mule webservices in detail
Mule webservices in detailMule webservices in detail
Mule webservices in detail
 
Mule Fundamentals
Mule FundamentalsMule Fundamentals
Mule Fundamentals
 
Using mule with web services
Using mule with web servicesUsing mule with web services
Using mule with web services
 
Enterprise Software Architecture
Enterprise Software ArchitectureEnterprise Software Architecture
Enterprise Software Architecture
 
Mule real-world-old
Mule real-world-oldMule real-world-old
Mule real-world-old
 
Development using anypointstudio
Development using anypointstudioDevelopment using anypointstudio
Development using anypointstudio
 
Mule execution
Mule executionMule execution
Mule execution
 
Mule execution
Mule executionMule execution
Mule execution
 
Custom connector development using mule DevKit
Custom connector development using mule DevKitCustom connector development using mule DevKit
Custom connector development using mule DevKit
 
Anypoint data gateway
Anypoint data gatewayAnypoint data gateway
Anypoint data gateway
 

Destaque

Como saber que generador requiero
Como saber que generador requieroComo saber que generador requiero
Como saber que generador requieroDavid Torres
 
Tertiary education, spain
Tertiary education, spainTertiary education, spain
Tertiary education, spainskillsforlife
 
Football funnies
Football funniesFootball funnies
Football funniesandrewsvids
 
Terápia genética contra el cáncer
Terápia genética contra el cáncerTerápia genética contra el cáncer
Terápia genética contra el cáncerAngelz Aneth
 
Алгоритм привлечения клиентов
Алгоритм привлечения клиентовАлгоритм привлечения клиентов
Алгоритм привлечения клиентовRinat Shaikhutdinov
 
FabSpace 2.0 Presentation - V2.5 - EN
FabSpace 2.0 Presentation - V2.5 - ENFabSpace 2.0 Presentation - V2.5 - EN
FabSpace 2.0 Presentation - V2.5 - ENColette Schenker
 
Kitchen medico plants By Mr Allah Dad Khan Agriculture Consultant KPK Pakista...
Kitchen medico plants By Mr Allah Dad Khan Agriculture Consultant KPK Pakista...Kitchen medico plants By Mr Allah Dad Khan Agriculture Consultant KPK Pakista...
Kitchen medico plants By Mr Allah Dad Khan Agriculture Consultant KPK Pakista...Mr.Allah Dad Khan
 
Структурирование информации. Краткая вводная
Структурирование информации. Краткая вводнаяСтруктурирование информации. Краткая вводная
Структурирование информации. Краткая вводнаяRinat Shaikhutdinov
 
THE BIG BANG THEORY presentación
THE BIG BANG THEORY presentaciónTHE BIG BANG THEORY presentación
THE BIG BANG THEORY presentaciónmariarguez20
 
Introduction to webservices
Introduction to webservicesIntroduction to webservices
Introduction to webservicesGagandeep Singh
 
Uso de las redes sociales
Uso de las redes socialesUso de las redes sociales
Uso de las redes socialescarlospunkq
 
Маркетинг в социальных сетях
Маркетинг в социальных сетяхМаркетинг в социальных сетях
Маркетинг в социальных сетяхRinat Shaikhutdinov
 
Smart Agriculture and the Fruit & Vegetable Industry, The New Face In Sustain...
Smart Agriculture and the Fruit & Vegetable Industry, The New Face In Sustain...Smart Agriculture and the Fruit & Vegetable Industry, The New Face In Sustain...
Smart Agriculture and the Fruit & Vegetable Industry, The New Face In Sustain...Keeley Holder
 
Movimiento mecanico de cargas 2
Movimiento mecanico de cargas 2Movimiento mecanico de cargas 2
Movimiento mecanico de cargas 2Carlos Martin
 
Sustainable chemistry from tomato skins
Sustainable chemistry from tomato skinsSustainable chemistry from tomato skins
Sustainable chemistry from tomato skinsBiocopacPlus
 
Kitchen gardening importance of vegetables By Mr Allah Dad Khan Agriculture C...
Kitchen gardening importance of vegetables By Mr Allah Dad Khan Agriculture C...Kitchen gardening importance of vegetables By Mr Allah Dad Khan Agriculture C...
Kitchen gardening importance of vegetables By Mr Allah Dad Khan Agriculture C...Mr.Allah Dad Khan
 

Destaque (20)

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

Semelhante a Jsf login logout project

Implementing auto complete using JQuery
Implementing auto complete using JQueryImplementing auto complete using JQuery
Implementing auto complete using JQueryBhushan Mulmule
 
JQUERY TUTORIALS
JQUERY TUTORIALSJQUERY TUTORIALS
JQUERY TUTORIALSMoize Roxas
 
Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Thecreating Experts
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingSarah Elson
 
Using HttpWatch Plug-in with Selenium Automation in Java
Using HttpWatch Plug-in with Selenium Automation in JavaUsing HttpWatch Plug-in with Selenium Automation in Java
Using HttpWatch Plug-in with Selenium Automation in JavaSandeep Tol
 
Better web apps with React and Redux
Better web apps with React and ReduxBetter web apps with React and Redux
Better web apps with React and ReduxAli Sa'o
 
Jquery
Jquery Jquery
Jquery eginni
 
Learn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionLearn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionMarshallChabaga
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basicrafaqathussainc077
 
Developing large scale JavaScript applications
Developing large scale JavaScript applicationsDeveloping large scale JavaScript applications
Developing large scale JavaScript applicationsMilan Korsos
 
React + Flux = Joy
React + Flux = JoyReact + Flux = Joy
React + Flux = JoyJohn Need
 

Semelhante a Jsf login logout project (20)

Implementing auto complete using JQuery
Implementing auto complete using JQueryImplementing auto complete using JQuery
Implementing auto complete using JQuery
 
Spring mvc
Spring mvcSpring mvc
Spring mvc
 
JQUERY TUTORIALS
JQUERY TUTORIALSJQUERY TUTORIALS
JQUERY TUTORIALS
 
Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2
 
Using galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testingUsing galen framework for automated cross browser layout testing
Using galen framework for automated cross browser layout testing
 
Using HttpWatch Plug-in with Selenium Automation in Java
Using HttpWatch Plug-in with Selenium Automation in JavaUsing HttpWatch Plug-in with Selenium Automation in Java
Using HttpWatch Plug-in with Selenium Automation in Java
 
Tech Talk on ReactJS
Tech Talk on ReactJSTech Talk on ReactJS
Tech Talk on ReactJS
 
Reactjs
ReactjsReactjs
Reactjs
 
JOSA TechTalks - Better Web Apps with React and Redux
JOSA TechTalks - Better Web Apps with React and ReduxJOSA TechTalks - Better Web Apps with React and Redux
JOSA TechTalks - Better Web Apps with React and Redux
 
Better web apps with React and Redux
Better web apps with React and ReduxBetter web apps with React and Redux
Better web apps with React and Redux
 
Jquery
Jquery Jquery
Jquery
 
Learn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - IntoductionLearn Spring Boot With Bisky - Intoduction
Learn Spring Boot With Bisky - Intoduction
 
React Basic and Advance || React Basic
React Basic and Advance   || React BasicReact Basic and Advance   || React Basic
React Basic and Advance || React Basic
 
Asp net-mvc-3 tier
Asp net-mvc-3 tierAsp net-mvc-3 tier
Asp net-mvc-3 tier
 
Selenium
SeleniumSelenium
Selenium
 
Developing large scale JavaScript applications
Developing large scale JavaScript applicationsDeveloping large scale JavaScript applications
Developing large scale JavaScript applications
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
 
Web works hol
Web works holWeb works hol
Web works hol
 
Building richwebapplicationsusingasp
Building richwebapplicationsusingaspBuilding richwebapplicationsusingasp
Building richwebapplicationsusingasp
 
React + Flux = Joy
React + Flux = JoyReact + Flux = Joy
React + Flux = Joy
 

Mais de Gagandeep Singh

Mais de Gagandeep Singh (6)

Autosys
AutosysAutosys
Autosys
 
Log4jxml ex
Log4jxml exLog4jxml ex
Log4jxml ex
 
Log4jprop example
Log4jprop exampleLog4jprop example
Log4jprop example
 
Log4e
Log4eLog4e
Log4e
 
Web Sphere Administration guide – Packaging and Deploying Jee Applications
Web Sphere Administration guide – Packaging and Deploying Jee ApplicationsWeb Sphere Administration guide – Packaging and Deploying Jee Applications
Web Sphere Administration guide – Packaging and Deploying Jee Applications
 
Understanding JSP -Servlets
Understanding JSP -ServletsUnderstanding JSP -Servlets
Understanding JSP -Servlets
 

Último

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfhans926745
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 

Último (20)

Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

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
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 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
  • 16.
  • 17. Step 3: Create the login JSF page login.xhtml
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. Step 4: Create the managed bean Login.java
  • 23.
  • 24. Step 5: Create the DataConnect.java class
  • 25.
  • 26. Step 6: Create the LoginDAO.java class
  • 27.
  • 28. Step 7: Create SessionBean.java
  • 29.
  • 30. Step 8: Create the authorization filter class
  • 31.
  • 32. Step 9: Create admin.xhtml
  • 33.
  • 34. Step 10: Edit faces-config.xml and web.xml
  • 35.
  • 36. Copy ojdbc6.jar in the Tomcat lib folder Install ojdbc folder from Oracle webstore and copy it on to the Tomcat/lib directory
  • 38.
  • 39. Validate the userid and password fields