Home Jsf Richfaces RichFaces: Login & Registration Application:
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

RichFaces: Login & Registration Application:

Advertisement
Login and Registration is one of the most required module of any project. This tutorial explains how to implement login and registration functionality in your JSF project.

RichFaces: Login & Registration Application

    

Login and Registration is one of the most required module of any project. This tutorial explains how to implement login and registration functionality in your JSF project. The example application in this tutorial is named "RichLRApplication" which uses RichFaces as JSF implementation and library of rich featured components. We have selected RichFaces for the application because it provides a large number of useful components which are enough to start with. RichFaces components are AJAX enabled which increases the responsiveness of the application.

In this application, Login page appears first in front of the user. User fills the login and password information and enters into the application for further actions. After successful user login, user can edit and save its profile information, change password and logout itself. If user is not able to login to the application i.e. forget the password, it can get password by clicking the link "Forgot Password?" in the login page itself. User is asked for the email id, which if valid and registered then password is sent to the email id. User can now login to the application by checking the mail and getting the password from there. If any new user wants to register itself in the application, there is a link "Register Here" for it. This link takes the user to the registration page where user can fill the required information and submit the information. User can change its password after successful login to the application by entering the old password and new password.

This Login & Registration example application provides:

  1. User Login
  2. User Registration
  3. Retrieve password to the registered email id
  4. Edit User Profile Information
  5. Change User Password
  6. User Logout

Application Development Steps:

To understand the application easily, we have divided the process in the following steps. These steps will let you understand the development of directory structure for the application, creating database structure, developing presentation layer through JSP, creating managed beans and running the application.

  1. Developing directory structure for the application
  2. Developing database for the application
  3. Creating configuration files
  4. Developing JSP files
  5. Creating managed beans
  6. Creating a properties file
  7. Registering managed bean and defining navigation rules
  8. Running the application

You can also download full source code for this application in zipped format. Unzip the source code and deployed it to the Tomcat server.
  Download full Source Code

You can also download the database script to create the database required for the application. Execute the script and database will be created automatically.
  Download Script for database

  Our example application uses:

  1. JSP pages for presentation purpose
  2. JavaBean to handle model data and
  3. Configuration files for defining managed bean, navigation rules, controller servlet.
Advertisements

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 24, 2008

Ask Questions?    Discuss: RichFaces: Login & Registration Application:   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
Niyas Muhammed
November 11, 2011
Php Login Page

i create a form that form using username and password this username and password using login how can i
bhoopal
March 12, 2012
project

I want to source code for chanePassword in jsp page for db2 database
what is the difference between jsp , jsf and richfaces
May 3, 2012
java

plz get me the differences between them
ravi kishore
May 24, 2012
jsf

it's really good for a new lerner of jsfframework
venu
June 6, 2012
Forgot Password in springMVC+JPA

Hi i have requirement of forgot password in my application which is using springMVC+JPA .i have to get user's password from database to his mail when he clicks on the link forgot password,please suggest me link to an example code.
Juan Carlos Garcia
July 18, 2012
Thanks You

Thanks You!!! =)
karthi
January 5, 2013
hi

we want java swing program for registration using mysql with validation.if u know pls post it.........
raja
October 16, 2013
Runtime Errror for above program

i got java run time error about package javax.faces.context does not exist, i searched in the api doc But i did't find can anybody clarify that
DMCA.com