YellowPages.Com

This portal allows registered users to add entries related to products and services offered by them. Registered users can search for entries by name. It provides all other regular features related to users like registration, change password, forgot password etc.

Architecture Of the Project

This project uses JSF. So, it uses MVC (Model View Controller) architecture.

From JSP pages data is sent to JSF Managed Beans . Managed Beans access DAO classes.

Data Access Objects (DAO) design pattern is used to access Oracle database using JDBC.

It uses a filter (Intercepting Filter design pattern) to ensure only authenticated users access secured pages.

Products used in this project

Steps to download and deploy this project

  1. Download yellowpages.rar. The .rar file contains the entire source code for the project. Unzip the file into C:\ so that c:\yellowpages folder is create with all the components of the project.
  2. However, it doesn't contain any .jar files related to JSF 1.2 , Java Mail - mail.jar and activation.jar and Oracle - ojdbc14.jar. You have to add these .jar files to this project. Use libraries node in NetBeans to do it. Add JSF 1.2 by using Add Library options and Add Folder/Jar for the rest of .jar files.
  3. Create yellowpages account with password yellowpages in Oracle10g Express Edition. This must be done after you log in as SYSTEM user. Then create tables listed below.
    create user  yellowpages identified by yellowpages;
    grant connect, resource to  yellowpages;
    
    connect  yellowpages/yellowpages
    
    create table categories
    ( catcode  number(2)  primary key,
       catname varchar(50) not null
    );
    
    insert  into categories values(1,'Software Development');
    insert  into categories values(2,'Software Institutes');
    insert  into categories values(3,'Hardware Retailers');
    insert  into categories values(4,'Hosting Service');
    
    
    create table users
    (  uname  varchar(10)  primary key,
        password varchar(10)  not null,
        email    varchar(50)   unique
    );
    
    insert  into users values('a','a','andy@gmail.com');
    insert  into users values('b','b','bill@gmail.com');
    
    create table  entries
    (  entryid   number(5)  primary key,
        entryname  varchar(50),
        description varchar(1000),
        address  varchar(300),
        phoneno  varchar(100),
        catcode   number(2)  references categories(catcode),
        uname     varchar(10)  references users(uname)
    );
    
    insert into entries values(1, 'Srikanth Technologies','Provides Training for .NET, Java and Oracle',
              'Dwarakanagar, Vizag', '2541948',2,'a');
    
    
  4. Create an account in CMail Server (Mail Server from youngzsoft.net and configure Outlook express to add a mail account for the user created in CMail Server. At the time of registering user in the project using register.jsp, use this email address for user so that you can test forgot password feature using this email address.
  5. Start NetBeans 6.x. Open the project from c:\yellowpages folder.
  6. Run this project - you must see login.jsp page.