Home | Ajax | BioInformatics | Dojo | EAI | EJB | Hibernate | J2ME | Java | Java Glossary | Java Servlets | JavaScript | Jboss | JDBC | JDO | Jmeter | JSF | JSP | JUnit | Maven | MySQL | Spring Framework | SQL | Struts | Technology | WAP | Web Services | XML
 
 
Search All Tutorials

 
Programming Tutorials: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML
 
Struts
  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification
  Java Applet
Questions
Comments

Login and User Registration Application

                         

In this tutorial we will learn how to develop login application based on Struts, Hibernate and Spring Framework. We will be using MySQL database to store the user information, and then authenticate the user at the login time. You can easily use this Login application to quick start your application development.

  1. Simplified Application Development
    This tutorial provides an outlook of the alternative lightweight approaches for building J2EE enterprise based web application by combining all the three mentioned frameworks e.g. Struts, Hibernate and Spring.
       
  2. About this Login Application
    This tutorial provides some simple steps for creating a website login application that can be used later in any big Struts Hibernate and Spring based application.
    => Login Form
    Login Screen our web application allows the user the registered user to logon to the system.
    => Update Profile
    The Update Profile page allows the logged in user to update his/her profile. Form allows user to change his/her password.
    => Forgot Password
    The Forgot Password for allows the retrieve their forgotten password.
      
  3. Designing and creating database
    Database designing is considered as crucial stage in the development lifecycle of the web application. The database is finally responsible for storing the data in the database for retrieval in future.
         
  4. Downloading the required software and integration into web application
    In this section you will learn how to download required software for our Login and Registration Application. In this tutorial we are using one of the best technologies (Struts, Hibernate and Spring).
      
  5. Writing POJO and configuration files
    We have only one table into the database and we need one POJO class and the hibernate mapping file to map the login object to the database table.
      
  6. Writing Spring Application Context definition xml
    In this section we will wire up the components by defining the Application context definition file (applicationContext-hibernate.xml). This file is used by context loader servlet to initialize the Spring application context.
      
  7. Configuring the Spring Context Loader Servlet
    In this section we will learn about Spring's Context loader servlet and then see how to add the required configuration in the web.xml file to load the Spring Context.
      
  8. Understanding Spring Struts Hibernate DAO Layer
    In this section we will understand how Spring Hibernate and Struts will work together to provide best solution for any web based application.
      
  9. DAO Layer explained
    In this section we will explain you the DAO Layer of our application.
      
  10. Send Mail Bean
    In our application we have developed mailer bean that sends welcome email when a new user is registered to the system. Mail Bean also used when user asks for the forgotten password.
      
  11. Developing User Registration Form
    In this section we will develop user registration form code.
      
  12. User Registration Action Class and DAO code
    In this section we will explain how to write code for action class and code for saving data into database.
      
  13. Login Form
    In this section we will develop Login Form code for our application.
      
  14. Developing Login Action Class
    In this section we will explain how to write code for login action class and database code for validating the user against database.
      
  15. Developing Forgot Password Form
    In this section we will develop Forgot Password Form code for our application.
      
  16. Developing Forgot Password Action Class
    In this section we will explain how to write code for Forgot Password and code for emailing the password.
      
  17. Update Profile form and action class
    In this section we will learn about update profile logic.
      
  18. Compiling and testing the application
    In this application we will compile and deploy the application on tomcat.
      
  19. Download Full Source Code
    You can download the full source code of the application from here.

                         

Facing Programming Problem?
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

20 comments so far (post your own) View All Comments Latest 10 Comments:

Thanks a lot for this tutorial Its working properly , I appreciate your help and this website is right place to learn good examples on latest technologies

Posted by skvarale on Tuesday, 06.3.08 @ 12:33pm | #61930

Hi,
thank you for this tutorial, I appreciate all what you did here to tach us this new technology, this is the best place in the internet to learn from.

I have a question please :

Where is the jsp file for listing all the users ???

Thanks again.

Majid

Posted by Majid on Monday, 05.12.08 @ 23:21pm | #59558

Hi,
Can anyone send me the complete project in struts and ejb.
I want to learn and develop project so I need help from you.
Please send me at umeshsnd@gmail.com


Thanks,
Umesh Kumar

Posted by Umesh on Thursday, 03.27.08 @ 17:49pm | #54499

Can someone send me the project source code by email, please:
doxumd@yahoo.com
I can't uncompress the project.zip

Thanks !!!

Posted by doxumd on Wednesday, 02.6.08 @ 21:58pm | #47442

hello i need simple login page code username, password, changpassword

Posted by md asif pasha on Thursday, 01.31.08 @ 11:45am | #46701

I want full detail of java,struts,spring,hybernet tutorials.

Posted by devendra bhandari on Wednesday, 01.23.08 @ 14:45pm | #45882

spring java based software free download

Posted by lokesh on Monday, 01.14.08 @ 17:53pm | #45186

Hi Deepak,

I am getting error in using the MySQl JDBC connector witht Tomcat for this particular application.

Please guide me the best way to configure mysql connector with tomcat.

From many days i am trying & almost all things doen except this for this login application.

Please reply ASAP.

Posted by nams on Thursday, 12.27.07 @ 10:00am | #43917

Thanks for your help in struts. This document is actually unvaluable for new dev to get easily touching the j2ee and web application.
All about the struts or java web application, we can discuss via this website.
Thanks again and contact me via email address: Truonglq@fsoft.com.vn

Posted by TruongLQ on Wednesday, 12.19.07 @ 18:44pm | #42976

I want java,struts,spring,hybernet tutorials.

Posted by kalvakota nagakrishna on Friday, 09.28.07 @ 12:42pm | #30126

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Hot Web Programming Job

Java String toLowerCase Example
Java String toCharArray Example
Java String substring Example
Java String indexOf Example
Java String startsWith Example
Java String hashCode Example
Java String matches Example
Java String length Example
Java String lastIndexOf Example
Java String isEmpty Example
Java String equalsIgnoreCase Example
Java String equals Example
Java String endsWith Example
Java String copyValueOf Example
Java String contentEquals Example
  EAI Articles
  Java Certification
Tell A Friend
Your Friend Name
Search Tutorials

 

 
 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.