PersonalDiary.Com Using JSF 2.2 + JDBC
This website allows users to add entries to their personal diary online.
It allows user to do the following:
- Register
- Login
- Recover password
- Change password
- Logout
- Add Entry to Diary
- Delete Entry from Diary
- Update Entry in Diary
- List Recent Entries from Diary
- Search Entries
Architecture Of the Project
The overall architecture is - Facelets -> Managed Beans -> DAO -> JDBC -> Oracle Database.
It uses JavaMail to send mail to user during password recovery.
It uses HTML5 validation and jQuery to validate user input.
Products and technologies used in this project
The following are products and technologies used in this project.
- Java EE 7.0 - JSF 2.2, Filter, and Java Mail
- Oracle 11g Express Edition
- NetBeans IDE 8.0.2
- Jdk 8.0
- Glassfish 4.1
- Mail Server - hMailServer
- jQuery
Steps to download and deploy this project
- Download personaldiary.rar. The .rar file contains the entire source
code for the project. Unzip the file into c:\ so that c:\PersonalDiary folder is created with all the components of the project.
- Open the project in NetBeans 8.x
- Go to properties of the project using popup menu. Select libraries
node and delete Oracle .jar file using Remove button. Then add -
Oracle - ojdbc6.jar from your system using Add Jar/Folder option Libraries node.
- Create personaldiary account with password pd in Oracle11g
Express Edition. This must be done after you log in as SYSTEM user. Then create
tables and sequences listed below after connecting to Oracle as personaldiary.
These commands are also present in tables.sql file in your project source code.
- Run all/login.xhtml.
- Click on Register link and register as a new user.
- Test other options
Click here for another version of this application in which we use JSF 2.2 with Hibernate.