Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ......

77
Integrity Management System 1 | Page For reference purpose only. Don’t copy UNIVERSITY OF MUMBAI A PROJECT REPORT ON Integrity Management SystemDESIGNED & DEVELOPED BY Mr. (XYZ) UNDER THE GUIDANCE OF PROF: - (faculty name) THIRD YEAR BACHELOR OF SCIENCE IN (INFORMATION TECHNOLOGY) 2014-2015 UNIVERSITY OF MUMBAI VIDHYAVADHINI’S A.V. College of Arts, K.M. College of Commerce, & E.S.A. College of Science Vasai Road (West), Dist. Thane, Maharashtra -401 202

Transcript of Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ......

Page 1: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

1 | P a g e

For reference purpose only. Don’t copy

UNIVERSITY OF MUMBAI

A PROJECT REPORT ON

“Integrity Management System”

DESIGNED & DEVELOPED BY

Mr. (XYZ)

UNDER THE GUIDANCE OF

PROF: - (faculty name)

THIRD YEAR BACHELOR OF SCIENCE IN

(INFORMATION TECHNOLOGY)

2014-2015

UNIVERSITY OF MUMBAI

VIDHYAVADHINI’S

A.V. College of Arts,

K.M. College of Commerce,

& E.S.A. College of Science

Vasai Road (West), Dist. –Thane, Maharashtra -401 202

Page 2: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

2 | P a g e

Vidyavaradhini’s A.V. College of Arts, K.M. College of

Commerce& E.S.A College of Science

CERTIFICATE

This is to certify that the following student has successfully and satisfactorily completed the project “Integrity Management System” and present his report in partial fulfillment of the required for Bsc.IT academic year 2014-2015 as specified by University of Mumbai. Team Members Roll-no Mr. XYZ 39 ________________________ ________________________

Prof. In Charge Internal Examiner

( / /2015) ( / /2015) ________________________ ________________________ External Examiner Head of Dept.

( / /2015) ( / /2015)

Page 3: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

3 | P a g e

Acknowledgement

After months of hard work, I am very happy to present my

last year’s project. But it wouldn’t be right to do so without thanking

those who have helped me in completion of my project. So I would

like to take full advantage of this opportunity to thank each and every

person who helped me throughout the completion of my project that is

respected teachers, friends, and family.

I would like to thank my parents & family members who

always support me greatly and encouraged me in each and every step.

I express my sincere gratitude to towards our internal

guide Prof. (pqr) who gave me unconditional support from the

starting point of the project.

I give my special thanks to my Respected H.O.D. Prof.

(hod name) for encouraging me to complete this project, guiding me

and helping me out through all the obstacles in the project.

Page 4: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

4 | P a g e

INDEX Sr.No. Contents Page

No. 1. Organization Overview 05

2. Introduction 08

3. About Existing System 10

4. Drawback of Existing System 11

5. Need for New System 12

6. Proposed System 13

7. Features of New System 15

8. System Flowchart 16

9. Feasibility Study 18

10. UML 21

11. Menu Tree 35

12. Program List 37

13. Database Design 39

14. Report List 42

15. Event Table 45

16. Crud Table 47

17. Code and Form Layout 49

18. Gantt Chart 92

19. Future Scope 94

20. Conclusion 96

22. Bibliography 98

Page 5: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

5 | P a g e

Organizational

Overview

Page 6: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

6 | P a g e

Organizational Overview

Name of the College:

Name of the Event:

Integrity

Postal Address:

Overview:

Page 7: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

7 | P a g e

INTRODUCTION

Integrity is one of the most awaited annual technical fest held by

Information Technology and Computer Science of Vidyavardhini's A.V.

College of Arts, K.M.College of Commerce & E.S.Andrades College of

Science. Currently it is celebrating its 6th successful year.

Integrity Management System is a faster, cleaner and a tad more

personal system, specially designed to make your event handling experience

better. All events information are kept in a text database, which consists of:

User management, Event management, Schedule management, Sponcer

management, expense management and Reports. This database can be modified

when the user updates. It contains following modules.

USER MANAGEMENT MODULE:

The user management module contains a backend for user administration.

This module allows you to manage users, groups, and roles defined in the

default security realm.

Two roles are defined in this module that are admin and operators. Only

admin have authority to add, modify, delete and view users.Wheras operator can

only create, edit and view users.

Page 8: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

8 | P a g e

EVENT MANAGEMENT MODULE:

This module is about managing events in the system. This module allows to

create, modify and delete event. Events are also scheduled by using this

module.

SPONCER MANAGEMENT MODULE:

This module is about managing Sponcer in the system. This module allows

to create, modify and delete Sponcer.

EXPENSE MANAGEMENT MODULE:

This module is about managing expense for events .This module allows to

create, modify and delete expense

REPORTS :

This module fetches data from the system based on criteria.

It contains:

List of all events.

List of all sponcers.

Event Schedule details.

Page 9: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

9 | P a g e

Existing System

&

Its

Disadvantages

Page 10: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

10 | P a g e

Existing System

There is no system develop yet for managing and storing database of event

All events are handled manually on paper . It is difficult to handle all the

events manually and it is less accurate and to keep the data in files for future

reference because it may get destroyed. Moreover it is very difficult to

retrieve data. Redundancy of data may occur and this may lead to the

inconsistency. The manual system is so time-consuming.

Also all transactions are executed on paper only, hence storing and

modification is difficult. Reports generation is one of the most time

consuming activity since all records are stored in files.

Hence, there is a need of implementation of the system with more advantages

and flexibility. The Integrity Management System eliminates most of the paper

work of the event and redundancy of data.

Page 11: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

11 | P a g e

Need For New System

1. Lack of immediate retrievals: -

The information is very difficult to retrieve and to find particular

information like- E.g. - To find out about the user’s history, the user has

to go through various registers. This results in inconvenience and wastage

of time.

2. Lack of immediate information storage: -

The information generated by various transactions takes time and efforts

to be stored at right place.

3. Lack of prompt updating: -

Various changes to information like event details or user detail are

difficult to make as paper work is involved.

4. Error prone manual calculation: -

Manual calculations are error prone and take a lot of time this may result

in incorrect information. For example calculation of expenses based on

various events.

5. Preparation of accurate and prompt reports: -

This becomes a difficult task as information is difficult to collect from

various registers.

Page 12: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

12 | P a g e

Proposed

System &

Its

Features

Page 13: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

13 | P a g e

Proposed System:

The system is basically oriented to reduce paper work.

The proposed system is very easy to operate. Speed and accuracy

are the main advantages of proposed system.

There is no redundancy of data. The data are stored in the

computer’s secondary memories like hard disk, etc. it can be easily

receive and used at any time. The proposed system will easily

handle all the data and the work done by the existing systems. The

proposed systems eliminate the drawbacks of the existing system

to a great extent and it provides tight security to data.

Also it would have provisions for maintaining and manipulating

the account details of a particular User.

The system would store information related to a User personal

We are building an 3-tier application

The presentation tier is build using JSP

The business tier is build using Java.

The DAO(Data access layer) is build using MY SQL

JBoss will be the application server to host out application

Page 14: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

14 | P a g e

Advantages of Proposed System:

The Software is for the automation of Integrity Event Management

It can be used in any college for their internal event management

The system would provide an environment which would help the

Admin for accessing and manipulating information related to all

his users.

Since the details of users are stored in tables, it would be easier for

the Admin to update their details quickly.

Also the system would provide features which would help the

Admin to find an approximate reports for a events.

Features Of Proposed System

THE SOFTWARE INCLUDES :-

User Management

Event Management.

Sponcer Management

Event Schedule Management

Expense Management

Reports

It maintains two levels of user:- Administrator Level User Level

Immediate access to the data

User Friendly Interface

Time Saving.

Data can easily Insert/Update/Delete /View

Saving paper work

Give facility of different types of Enquiry

Data’s are easily approachable

Page 15: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

15 | P a g e

System

Flow chart

Page 16: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

16 | P a g e

Page 17: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

17 | P a g e

Feasibility

Study

Page 18: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

18 | P a g e

Feasibility Study

This project on Integrity Management System is highly feasible. It

accomplishes all the feasibility requirements to develop good software.

Feasibility study is done so that an ill-conceived system is recognized early in

definition phase.

Economic Feasibility:

An evaluation of development cost weighted against the ultimate income

or benefit derived from the developed system.

System build with minimum resource & low cost

As it is not a large scale project it is not expensive.

Technical Feasibility:

It is run on any platform with minimum configuration

A study of function, performance and constraints that may affect the

ability to achieve an acceptable system.

Being a small scale project the working of the project is quietly simple.

The project is user friendly and so this new technology will save a lot of

time, of both the Data Entry Operator and the Management.

The flow of the project is not complicated and so even if a new employee

(Data Entry Operator or Management) is hired, he/she can understand the

system easily.

Operational Feasibility:

A study about the operational aspects of the system.

This project is operational in all the aspects.

The system is operationally feasible as it very easy for the End users to

operate it. It only needs basic information about Windows platform

Page 19: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

19 | P a g e

PROCESS MODEL

The simplest process model is the waterfall model, which states the

Phases are organized in the linear order. The model was originally proposed by

Royce, though variations of the model have evolved depending on the nature of

activities and the flow of control between them. In this model, a project begins

with feasibility analysis.

Steps:-

Requirements document

Project plan

Design documentation(architecture, system, detailed)

Test plan and test reports.

Final code

Software manuals (e.g. - user, installation, etc.)

Page 20: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

20 | P a g e

Uml

Use Case

Diagram

Page 21: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

21 | P a g e

Use case Diagram

Page 22: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

22 | P a g e

Page 23: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

23 | P a g e

Activity

Diagram

Page 24: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

24 | P a g e

Activity Diagram

1. Activity Diagram for Event

Page 25: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

25 | P a g e

2. Activity Diagram for Sponcer

Page 26: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

26 | P a g e

3. Activity Diagram for Expense

Page 27: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

27 | P a g e

Class

Diagram

Page 28: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

28 | P a g e

Class Diagram

Page 29: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

29 | P a g e

Sequence

Diagram

Page 30: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

30 | P a g e

Sequence Diagram

1.Sequence diagram for User

Page 31: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

31 | P a g e

2. Sequence diagram for Event

Page 32: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

32 | P a g e

3. Sequence diagram for Sponcer

Page 33: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

33 | P a g e

4. Sequence diagram for Expense

Page 34: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

34 | P a g e

Menu

Tree

Page 35: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

35 | P a g e

Menu Tree

Users

Create

Update

Delete

View

Event

Create

Update

Delete

View

Schedule

Sponcer

Create

Update

Delete

View

Expense

Create

Update

Delete

View

Reports

Show User

Show event

Show sponcer

show expense

Page 36: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

36 | P a g e

Program

List

Page 37: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

37 | P a g e

Program List

FORMS DESCRIPTION

Create User System User created in this form

User Search User search in this form and

details are update ,delete or view

Create Event Event created in this project

Event Search Event search in this form and

details are update ,delete or view

Create Event Schedule Event scheduled in this form

Schedule search Event Schedule update ,delete or

view in this form

Create Sponcer Sponcer details are entered in this

form

Sponcer Search Sponcer search in this form and

details are update ,delete or view

Create Expense Expense details are entered in this

form

Expense Search Expense details search in this

form and details are update ,delete

or view

Show sponcer

Show sponcer details and

calculate total sponcership amount

Show Expense Show expense and calculate total

amount left

Show users

Show system users details

Show schedule Show event schedule

Page 38: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

38 | P a g e

Database

Design

Page 39: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

39 | P a g e

Database Design

UerDetails

EventSchedule

Sponcer

COLUMN NAME DATATYPE SIZE CONSTRAINTS

Userid INT - PRIMARY KEY

Firstname VARCHAR 20

Lastname VARCHAR 20

Username VARCHAR 20 UNIQUE

Password VARCHAR 20

DateOfBirth VARCHAR 20

gender VARCHAR 20

Contactno VARCHAR 20

roleid INT - NOT NULL

Email VARCHAR 20

COLUMN NAME DATATYPE SIZE CONSTRAINTS

Esid INT - PRIMARY KEY,NOT

NULL

Eventid INT - FOREGION KEY

Eventdate VARCHAR 20

startTime VARCHAR 20

venue VARCHAR 20

EventHead VARCHAR 20

e_contact VARCHAR 20

COLUMN NAME DATATYPE SIZE CONSTRAINTS

Sponcerid INT - PRIMARY KEY

Sponcername VARCHAR 20 UNIQUE

s_description VARCHAR 250

s_address VARCHAR 250

s_contact VARCHAR 250

s_url VARCHAR 150

s_logo BLOB 100

amount INT - NOT NULL

Page 40: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

40 | P a g e

Report List

Page 41: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

41 | P a g e

Report List

Show System Users

Show Events :

Show Event Schedule :

Page 42: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

42 | P a g e

Show sponcers Details:

Page 43: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

43 | P a g e

Event

Table

Page 44: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

44 | P a g e

Event Table

Event Trigger Source Activity Response Destination

User

Creation

User

Details User

Store

User

Details

User id

generated Admin

Create

new

Event

User

Create

Event

Event

Check

already

Exists

Create

event Admin

Scheduled

Event

Head

scheduled

event

Head Shedule

Event

Event

Scheduled

Committee

Members

Create

Sponcer

Add

Sponcer

info

Head Add

Sponcer

Sponcer

details Admin

Add

Expense

Add

Expense

Info

Head Add

Expense

Expense

details Admin

Reports

Add

reports

info

Head Process

reports

Reports

Details admin

Page 45: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

45 | P a g e

CRUD

Table

Page 46: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

46 | P a g e

CRUD TABLE

User

Table

Admin Head Committee

Members

User Details CRUD V V

Events CRUD CRU CR

Event Schedule CRUD CRU CR

Sponcer CRUD CRU CR

Expense CRUD CRU CR

Page 47: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

47 | P a g e

Code and

Form

Layout

Page 48: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

48 | P a g e

Form Layout

Login Page

Welcome page

Page 49: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

49 | P a g e

Create User

User Search:

Page 50: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

50 | P a g e

Code

Controller Servlet : package com.vartak.controller;

import java.io.*;

import java.sql.SQLException;

import java.util.ArrayList;

import javax.servlet.RequestDispatcher;

import javax.servlet.ServletException;

import javax.servlet.ServletRequest;

import javax.servlet.ServletResponse;

import javax.servlet.annotation.WebServlet;

import javax.servlet.http.HttpServlet;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import javax.servlet.http.HttpSession;

import com.vartak.bean.EventBean;

import com.vartak.bean.ScheduleBean;

import com.vartak.bean.SponcerBean;

import com.vartak.bean.UserBean;

import com.vartak.business.RequestProcessor;

import com.vartak.utils.PrintArray;

import com.vartak.utils.Sum;

@WebServlet("/ControllerServlet")

public class ControllerServlet extends HttpServlet {

private static final long serialVersionUID = 1L;

protected void doPost(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

System.out.println("Control Inside Base servlet !!!!");

String functionDecider = request.getParameter("functionDecider");

System.out.println("functionDecider :" + functionDecider);

if (functionDecider.equals("login")) {

String op = request.getParameter("operation");

request.setAttribute("operation", op);

doLoginRequest(request, response);

} else if (functionDecider.equals("logout")) {

doLogoutRequest(request, response);

} else if (functionDecider.equals("rd")) {

String operation = request.getParameter("operation");

HttpSession session = request.getSession(true);

session.setAttribute("operation", operation);

try {

doRedirection(request, response);

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

Page 51: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

51 | P a g e

}

} else if (functionDecider.equals("rd1")) {

int id = Integer.parseInt(request.getParameter("id"));

System.out.println("id :" + id);

request.setAttribute("id", id);

String operation = request.getParameter("operation");

HttpSession session = request.getSession(true);

session.setAttribute("operation", operation);

System.out.println("inside rd1 " + operation);

try {

doRedirection(request, response);

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

} else if (functionDecider.equals("fp")) {

System.out.println("inside fp");

doUpdate(request, response);

} else if (functionDecider.equals("serachDate")) {

getSearch(request, response);

} else if (functionDecider.endsWith("Search")) {

if (functionDecider.equalsIgnoreCase("userSearch")) {

String operation = request.getParameter("operation");

System.out.println("inside user search :" + operation);

HttpSession session = request.getSession(true);

session.setAttribute("op", operation);

RequestDispatcher rd = request

.getRequestDispatcher("/UserSearch.jsp");

rd.forward(request, response);

}

if (functionDecider.equalsIgnoreCase("eventSearch")) {

String operation = request.getParameter("operation");

HttpSession session = request.getSession(true);

session.setAttribute("op", operation);

RequestDispatcher rd = request

.getRequestDispatcher("/EventSearch.jsp");

rd.forward(request, response);

}

if (functionDecider.equalsIgnoreCase("sponcerSearch")) {

String operation = request.getParameter("operation");

System.out.println("inside sponcer search :" + operation);

HttpSession session = request.getSession(true);

session.setAttribute("op", operation);

RequestDispatcher rd = request

.getRequestDispatcher("/SponcerSearch.jsp");

rd.forward(request, response);

}

if (functionDecider.equalsIgnoreCase("eventscheduleSearch")) {

String operation = request.getParameter("operation");

System.out.println("inside schedule search search :"

Page 52: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

52 | P a g e

+ operation);

HttpSession session = request.getSession(true);

session.setAttribute("op", operation);

RequestDispatcher rd = request

.getRequestDispatcher("/eventscheduleSearch.jsp");

rd.forward(request, response);

}

} else if (functionDecider.equals("userMod")) {

HttpSession session = request.getSession(true);

String operation = (String) session.getAttribute("op");

RequestDispatcher rd;

RequestProcessor rp = new RequestProcessor();

String nameQry = "";

String appendAnd = "";

String query = "Select

Userid,Firstname,Lastname,Username,Password,DateOfBirth,gender,Contactno,Roleid,Email from

userDetails where ";

if (request.getParameter("uname") != null

&& request.getParameter("uname").length() > 0) {

nameQry = "username like '%" + request.getParameter("uname")

+ "%'";

query = query + nameQry;

appendAnd = " and ";

}

if (request.getParameter("email") != null

&& request.getParameter("email").length() > 0) {

nameQry = "email like '%" + request.getParameter("email")

+ "%'";

query = query + appendAnd + nameQry;

}

System.out.println("inside user search");

System.out.println(query);

// set all the parameter from the screen to the query

try {

ArrayList al = rp.getSearchResult(query);

if (al != null && al.size() > 0) {

System.out.println("inside user mod dispatcher :"

+ operation);

rd = request.getRequestDispatcher("/UserSearch.jsp");

request.setAttribute("al", al);

rd.forward(request, response);

} else {

rd = request.getRequestDispatcher("/Error.jsp");

rd.forward(request, response);

}

} catch (SQLException e) {

// TODO Auto-generated catch block

Page 53: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

53 | P a g e

e.printStackTrace();

}

} else if (functionDecider.equals("eventMod")) {

HttpSession session = request.getSession(true);

String operation = (String) session.getAttribute("op");

RequestDispatcher rd;

RequestProcessor rp = new RequestProcessor();

String nameQry = "";

String appendAnd = "";

String query = "Select

Eventid,Eventtype_id,Eventname,e_Description,noOfMember,Fees from Events where ";

if (request.getParameter("ename") != null

&& request.getParameter("ename").length() > 0) {

nameQry = "Eventname like '%" + request.getParameter("ename")

+ "%'";

query = query + nameQry;

System.out.println("query" + query);

}

System.out.println("query" + query);

try {

ArrayList al1 = rp.getSearchResult(query);

if (al1 != null && al1.size() > 0) {

System.out.println("inside user mod dispatcher :"

+ operation);

rd = request.getRequestDispatcher("/EventSearch.jsp");

request.setAttribute("al1", al1);

rd.forward(request, response);

} else {

rd = request.getRequestDispatcher("/Error.jsp");

rd.forward(request, response);

}

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

} else if (functionDecider.equals("scheduleMod")) {

HttpSession session = request.getSession(true);

String operation = (String) session.getAttribute("op");

RequestDispatcher rd;

RequestProcessor rp = new RequestProcessor();

String nameQry = "";

String appendAnd = "";

String query = "Select

a.Esid,b.Eventname,EventDate,startTime,Venue,EventHead,E_contact from EventSchedule a ,Events

b where a.eventid = b.eventid and ";

Page 54: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

54 | P a g e

if (request.getParameter("ename") != null

&& request.getParameter("ename").length() > 0) {

nameQry = "b.Eventname like '%" + request.getParameter("ename")

+ "%'";

query = query + nameQry;

System.out.println("query" + query);

}

System.out.println("query" + query);

try {

ArrayList al1 = rp.getSearchResult(query);

if (al1 != null && al1.size() > 0) {

System.out.println("inside user mod dispatcher :"

+ operation);

rd = request

.getRequestDispatcher("/eventscheduleSearch.jsp");

request.setAttribute("al1", al1);

rd.forward(request, response);

} else {

rd = request.getRequestDispatcher("/Error.jsp");

rd.forward(request, response);

}

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

else if (functionDecider.equals("sponcerMod")) {

HttpSession session = request.getSession(true);

String operation = (String) session.getAttribute("op");

RequestDispatcher rd;

RequestProcessor rp = new RequestProcessor();

String nameQry = "";

String query = "Select Sponcerid,Sponcername,s_contact,Amount from

Sponcer where ";

if (request.getParameter("sname") != null

&& request.getParameter("sname").length() > 0) {

nameQry = "Sponcername like '%" + request.getParameter("sname")

+ "%'";

query = query + nameQry;

System.out.println("query" + query);

}

System.out.println("query" + query);

Page 55: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

55 | P a g e

try {

ArrayList al1 = rp.getSearchResult(query);

if (al1 != null && al1.size() > 0) {

System.out.println("inside sponcer mod dispatcher :"

+ operation);

rd = request.getRequestDispatcher("/SponcerSearch.jsp");

request.setAttribute("al1", al1);

rd.forward(request, response);

} else {

rd = request.getRequestDispatcher("/Error.jsp");

rd.forward(request, response);

}

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

}

private void getSearch(HttpServletRequest request,

HttpServletResponse response) {

RequestDispatcher rd;

RequestProcessor rp = new RequestProcessor();

String nameQry = "";

String appendAnd = "";

String query = "Select

b.Eventname,EventDate,startTime,Venue,EventHead,E_contact from EventSchedule a ,Events b

where a.eventid = b.eventid and ";

if (request.getParameter("eDate") != null

&& request.getParameter("eDate").length() > 0) {

nameQry = "EventDate = '" + request.getParameter("eDate") + "'";

query = query + nameQry;

System.out.println("query" + query);

}

System.out.println("query" + query);

try {

ArrayList al1 = rp.getSearchResult(query);

if (al1 != null && al1.size() > 0) {

rd = request.getRequestDispatcher("/showSchedule.jsp");

request.setAttribute("searchList", al1);

try {

rd.forward(request, response);

Page 56: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

56 | P a g e

} catch (ServletException | IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

} else {

rd = request.getRequestDispatcher("/Error.jsp");

try {

rd.forward(request, response);

} catch (ServletException | IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

private void doLogoutRequest(HttpServletRequest request,

HttpServletResponse response) {

HttpSession session = request.getSession(true);

session.removeAttribute("username");

session.invalidate();

try {

RequestDispatcher rd = request.getRequestDispatcher("/Login.jsp");

rd.forward(request, response);

} catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

public void doUpdate(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

System.out.println("inside do update");

HttpSession session = request.getSession(true);

String role = (String) session.getAttribute("role");

String userID = (String) session.getAttribute("userID");

String module = (String) session.getAttribute("module");

System.out.println("ROLE " + role);

System.out.println("userID " + userID);

System.out.println("Module " + module);

if (role != null && role.length() > 0) {

System.out.println("inside if role");

Page 57: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

57 | P a g e

if (userID != null && userID.length() > 0) {

System.out.println("inside if uid");

if (module != null && module.length() > 0) {

System.out.println("inside if module " + module);

if (module.equalsIgnoreCase("USERMGMT")) {

System.out.println("inside if usermgmt");

this.processUserMgmt(request, response);

System.out.println("inside loop");

} else if (module.equalsIgnoreCase("EVENTS")) {

processEvents(request, response);

} else if (module.equalsIgnoreCase("EVENTSCHEDULE"))

{

processEventSchedule(request, response);

} else if (module.equalsIgnoreCase("EVENTSPONCERS"))

{

processSponcers(request, response);

}

}

}

}

}

public void doLoginRequest(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

String operation = request.getParameter("operation");

System.out.println("Operation " + operation);

if (operation.equals("login")) {

doLogin(request, response);

}

}

public void doRedirection(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException,

SQLException {

String module = request.getParameter("module");

HttpSession session = request.getSession(true);

String role = (String) session.getAttribute("role");

String userID = (String) session.getAttribute("userID");

session.setAttribute("module", module);

System.out.println("ROLE " + role);

System.out.println("userID " + userID);

System.out.println("Module " + module);

if (role != null && role.length() > 0) {

if (userID != null && userID.length() > 0) {

Page 58: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

58 | P a g e

if (module != null && module.length() > 0) {

if (module.equals("USERMGMT")) {

this.processUserMgmtRedirection(request,

response);

} else if (module.equals("EVENTS")) {

this.processEventsRedirection(request, response);

} else if (module.equals("EVENTSCHEDULE")) {

System.out.println("inside schedule redirection ");

this.processEventScheduleRedirection(request,

response);

} else if (module.equals("EVENTSPONCERS")) {

this.processSponcersRedirection(request, response);

} else if (module.equals("Report")) {

this.processReportRedirection(request, response);

}

}

}

}

}

private void processReportRedirection(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException,

SQLException {

RequestDispatcher rd;

String operation = request.getParameter("operation");

RequestProcessor rp;

if (operation != null && operation.length() > 0) {

if (operation.equals("showUser")) {

rp = new RequestProcessor();

ArrayList al = rp.showUser();

request.setAttribute("al", al);

rd = request.getRequestDispatcher("/showUsers.jsp");

rd.forward(request, response);

} else if (operation.equals("showEvent")) {

rp = new RequestProcessor();

ArrayList al = rp.showEvent();

request.setAttribute("al", al);

rd = request.getRequestDispatcher("/showEvents.jsp");

rd.forward(request, response);

} else if (operation.equals("showSchedule")) {

rp = new RequestProcessor();

ArrayList al = rp.showSchedule();

request.setAttribute("al", al);

rd = request.getRequestDispatcher("/showSchedule.jsp");

rd.forward(request, response);

} else if (operation.equals("showSponcer")) {

rp = new RequestProcessor();

ArrayList al = rp.showSponcers();

request.setAttribute("al", al);

ArrayList al1 = rp.showTotalAmount();

Sum s = new Sum();

int sum = s.getSum(al1);

request.setAttribute("sum", sum);

Page 59: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

59 | P a g e

rd = request.getRequestDispatcher("/showSponcers.jsp");

rd.forward(request, response);

}

}

}

public void processEventsRedirection(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

RequestProcessor rp = new RequestProcessor();

PrintArray p = new PrintArray();

ArrayList al = null;

try {

al = rp.getEventType();

request.setAttribute("al", al);

} catch (SQLException e) {

e.printStackTrace();

}

RequestDispatcher rd;

String operation = request.getParameter("operation");

if (!operation.equalsIgnoreCase("addEvent") && operation != null) {

String id = request.getParameter("id");

try {

EventBean eb = rp.getEventDetailById(id);

request.setAttribute("eb", eb);

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

if (operation != null && operation.length() > 0) {

if (operation.equals("addEvent")) {

rd = request.getRequestDispatcher("/CreateEvent.jsp");

rd.forward(request, response);

} else if (operation.equals("modifyEvent")) {

rd = request.getRequestDispatcher("/EditEventDetails.jsp");

rd.forward(request, response);

} else if (operation.equals("deleteEvent")) {

rd = request.getRequestDispatcher("/DeleteEvent.jsp");

rd.forward(request, response);

} else if (operation.equals("viewEvent")) {

rd = request.getRequestDispatcher("/ViewEvent.jsp");

rd.forward(request, response);

}

}

}

public void processSponcersRedirection(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

RequestDispatcher rd;

RequestProcessor rp = new RequestProcessor();

String operation = request.getParameter("operation");

if (!operation.equalsIgnoreCase("addSponcer") && operation != null) {

String id = request.getParameter("id");

Page 60: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

60 | P a g e

try {

SponcerBean sb = rp.getSponcerDetailById(id);

request.setAttribute("sb", sb);

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

System.out.println("Processing Sponcer !!!!! ");

}

if (operation != null && operation.length() > 0) {

if (operation.equals("addSponcer")) {

rd = request.getRequestDispatcher("/CreateSponcer.jsp");

rd.forward(request, response);

} else if (operation.equals("modifySponcer")) {

rd = request.getRequestDispatcher("/EditSponcerDetails.jsp");

rd.forward(request, response);

} else if (operation.equals("deleteSponcer")) {

rd = request.getRequestDispatcher("/DeletSponcer.jsp");

rd.forward(request, response);

} else if (operation.equals("viewSponcer")) {

rd = request.getRequestDispatcher("/ViewSponcer.jsp");

rd.forward(request, response);

}

}

}

public void processEventScheduleRedirection(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

RequestProcessor rp = new RequestProcessor();

ArrayList al = null;

try {

al = rp.getEventNameById();

request.setAttribute("al", al);

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

RequestDispatcher rd;

System.out.println("Processing Sevent schedule !!!!! ");

String operation = request.getParameter("operation");

System.out.println("operation" + operation);

if (!operation.equalsIgnoreCase("addEventSchedule")

&& operation != null) {

System.out.println("inside not condition ");

String id = request.getParameter("id");

try {

ScheduleBean esb = rp.getScheduleById(id);

request.setAttribute("esb", esb);

System.out.println(" event id" + esb.getEventId());

EventBean eb = rp.getEventDetailById(esb.getEventId());

System.out.println(" evntname :" + eb.getEventName());

request.setAttribute("eb", eb);

Page 61: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

61 | P a g e

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

if (operation != null && operation.length() > 0) {

if (operation.equals("addEventSchedule")) {

System.out.println("inside add event schedule redirectio");

rd = request.getRequestDispatcher("/CreateEventSchedule.jsp");

rd.forward(request, response);

} else if (operation.equals("modifyEventSchedule")) {

System.out.println("inside redirection ");

rd = request.getRequestDispatcher("/EditEventSchedule.jsp");

rd.forward(request, response);

} else if (operation.equals("deleteEventSchedule")) {

rd = request.getRequestDispatcher("/DeleteEventSchedule.jsp");

rd.forward(request, response);

} else if (operation.equals("viewEventSchedule")) {

rd = request.getRequestDispatcher("/ViewSchedule.jsp");

rd.forward(request, response);

}

}

}

public void processUserMgmtRedirection(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

RequestProcessor rp = new RequestProcessor();

ArrayList al = null;

try {

al = rp.getRoloeDetails();

request.setAttribute("al", al);

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

RequestDispatcher rd;

System.out.println("Processing user !!!!! ");

String operation = request.getParameter("operation");

if (!operation.equalsIgnoreCase("addUser") && operation != null) {

String id = request.getParameter("id");

try {

UserBean ub = rp.getUserDetailsByID(id);

request.setAttribute("ub", ub);

} catch (SQLException e) {

e.printStackTrace();

}

}

if (operation != null && operation.length() > 0) {

if (operation.equals("addUser")) {

rd = request.getRequestDispatcher("/UserCreation.jsp");

rd.forward(request, response);

Page 62: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

62 | P a g e

} else if (operation.equals("modifyUser")) {

rd = request.getRequestDispatcher("/EditUserDetails.jsp");

rd.forward(request, response);

} else if (operation.equals("deleteUser")) {

rd = request.getRequestDispatcher("/DeleteUser.jsp");

rd.forward(request, response);

} else if (operation.equals("viewUser")) {

rd = request.getRequestDispatcher("/UserDetails.jsp");

rd.forward(request, response);

}

}

}

public void processSponcers(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

RequestProcessor rp = new RequestProcessor();

HttpSession session = request.getSession();

System.out.println("Processing Sponcer !!!!! ");

String operation = (String) session.getAttribute("operation");

SponcerBean sb = new SponcerBean();

sb.setSponcerName(request.getParameter("sponcerName"));

sb.setSponcerAddress(request.getParameter("sponcerAdd"));

sb.setSponcerContactNO(request.getParameter("cno"));

sb.setSponcerURL(request.getParameter("wurl"));

sb.setSponcerDescription(request.getParameter("sponcerDesc"));

sb.setAmount(Integer.parseInt(request.getParameter("amount")));

RequestDispatcher rd;

rd = request.getRequestDispatcher("/Error.jsp");

if (operation != null & operation.equalsIgnoreCase("addSponcer")) {

FileInputStream fis;

System.out.println(request.getParameter("logo"));

File image = new File("D:/" + request.getParameter("logo"));

fis = new FileInputStream(image);

int imglen = (int) image.length();

try {

if (rp.SponcerProcess(operation, sb, fis, imglen)) {

rd =

request.getRequestDispatcher("/Welcome.jsp?sucess=cs");

}

} catch (SQLException e) {

e.printStackTrace();

}

} else {

try {

if (rp.sponcerProcess(operation, sb)) {

if (operation.equalsIgnoreCase("modifySponcer")) {

rd = request

.getRequestDispatcher("/Welcome.jsp?sucess=ms");

}

if (operation.equalsIgnoreCase("deleteSponcer")) {

rd = request

Page 63: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

63 | P a g e

.getRequestDispatcher("/Welcome.jsp?sucess=ds");

}

if (operation.equalsIgnoreCase("viewSponcer")) {

rd = request.getRequestDispatcher("/Welcome.jsp");

}

}

} catch (Exception e) {

e.printStackTrace();

}

}

rd.forward(request, response);

}

public void processEvents(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

RequestProcessor rp = new RequestProcessor();

HttpSession session = request.getSession();

System.out.println("Processing Events !!!!! ");

String operation = (String) session.getAttribute("operation");

EventBean eb = new EventBean();

eb.setEventType(request.getParameter("eventType"));

eb.setEventName(request.getParameter("eventName"));

eb.setEventDescription(request.getParameter("eventDesc"));

eb.setNoOfMem(Integer.parseInt(request.getParameter("noOfMember")));

eb.setEventFees(Integer.parseInt(request.getParameter("eventFees")));

RequestDispatcher rd;

rd = request.getRequestDispatcher("Error.jsp");

if (operation != null & operation.equalsIgnoreCase("addEvent")) {

FileInputStream fis;

System.out.println(request.getParameter("fileField"));

File image = new File("D:/" + request.getParameter("fileField"));

fis = new FileInputStream(image);

int imglen = (int) image.length();

try {

if (rp.eventProcess(operation, eb, fis, imglen)) {

rd =

request.getRequestDispatcher("/Welcome.jsp?sucess=ce");

}

} catch (SQLException e) {

e.printStackTrace();

}

} else {

try {

if (rp.eventProcess(operation, eb)) {

if (operation.equalsIgnoreCase("modifyEvent")) {

rd = request

.getRequestDispatcher("/Welcome.jsp?sucess=me");

}

if (operation.equalsIgnoreCase("deleteEvent")) {

Page 64: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

64 | P a g e

rd = request

.getRequestDispatcher("/Welcome.jsp?sucess=de");

}

if (operation.equalsIgnoreCase("viewEvent")) {

rd = request.getRequestDispatcher("/Welcome.jsp");

}

}

} catch (Exception e) {

e.printStackTrace();

}

}

rd.forward(request, response);

}

public void processEventSchedule(HttpServletRequest request,

HttpServletResponse response) {

HttpSession session = request.getSession();

System.out.println("Processing Sponcer !!!!! ");

RequestProcessor rp = new RequestProcessor();

String operation = (String) session.getAttribute("operation");

ScheduleBean sb = new ScheduleBean();

if (operation != null && operation.equalsIgnoreCase("addEventSchedule")) {

sb.setEventId(request.getParameter("eId"));

} else {

sb.setEventsId(request.getParameter("esid"));

}

sb.setEventDate(request.getParameter("eDate"));

sb.setEventTime(request.getParameter("etime"));

sb.setEventVenue(request.getParameter("eVenue"));

sb.setEventHead(request.getParameter("ehead"));

sb.setEhContact(request.getParameter("ecno"));

RequestDispatcher rd;

rd = request.getRequestDispatcher("/Error.jsp");

try {

if (rp.eventScheduleProcess(operation, sb)) {

if (operation.equalsIgnoreCase("addEventSchedule")) {

rd = request

.getRequestDispatcher("/Welcome.jsp?sucess=ces");

}

if (operation.equalsIgnoreCase("modifyEventSchedule")) {

rd = request

.getRequestDispatcher("/Welcome.jsp?sucess=mes");

}

if (operation.equalsIgnoreCase("deleteEventSchedule")) {

rd = request

Page 65: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

65 | P a g e

.getRequestDispatcher("/Welcome.jsp?sucess=des");

}

if (operation.equalsIgnoreCase("viewEventSchedule")) {

rd = request.getRequestDispatcher("/Welcome.jsp");

}

}

} catch (SQLException e) {

e.printStackTrace();

}

try {

rd.forward(request, response);

} catch (ServletException | IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

}

public void processUserMgmt(HttpServletRequest request,

HttpServletResponse response) throws ServletException, IOException {

System.out.println("Control inside userMGMT ");

RequestProcessor rp = new RequestProcessor();

HttpSession session = request.getSession();

System.out.println("Processing user update !!!!! ");

String operation = (String) session.getAttribute("operation");

System.out.println(operation);

UserBean ub = new UserBean();

ub.setFirstName(request.getParameter("fname"));

ub.setLastName(request.getParameter("lname"));

ub.setDateOfBirth(request.getParameter("dateOfBirth"));

ub.setUname(request.getParameter("uname"));

ub.setPwd(request.getParameter("password"));

ub.setCno(request.getParameter("cno"));

ub.setGender(request.getParameter("gender"));

ub.setEmail(request.getParameter("eid"));

ub.setRole(request.getParameter("roleid"));

RequestDispatcher rd;

rd = request.getRequestDispatcher("/Error.jsp");

try {

if (rp.userMgmtProcess(operation, ub)) {

if (operation.equalsIgnoreCase("addUser")) {

rd =

request.getRequestDispatcher("/Welcome.jsp?sucess=cu");

}

Page 66: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

66 | P a g e

if (operation.equalsIgnoreCase("modifyUser")) {

rd =

request.getRequestDispatcher("/Welcome.jsp?sucess=mu");

}

if (operation.equalsIgnoreCase("deleteUser")) {

rd =

request.getRequestDispatcher("/Welcome.jsp?sucess=du");

}

if (operation.equalsIgnoreCase("viewUser")) {

rd = request.getRequestDispatcher("/Welcome.jsp");

}

}

} catch (SQLException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

rd.forward(request, response);

}

public void doLogin(HttpServletRequest request, HttpServletResponse response)

throws ServletException, IOException {

RequestProcessor rp = new RequestProcessor();

String uname = request.getParameter("uname");

String pwd = request.getParameter("password");

System.out.println("inside do login !!!");

RequestDispatcher rd;

System.out.println("uname :" + uname + "pwd :" + pwd);

try {

if (rp.authenticateUser(uname, pwd)) {

System.out.println("if inside do login !!!");

UserBean ub = rp.getUserDetails(uname);

HttpSession session = request.getSession(true);

session.setAttribute("role", ub.getRole());

session.setAttribute("userID", ub.getUid() + "");

session.setAttribute("module", "UserMgmt");

System.out.println("session " + session);

session.setAttribute("username", ub.getUname());

System.out.println("Roleid : " + ub.getRoleId());

ArrayList accessal = rp.getAccess(ub.getRoleId());

rd = request.getRequestDispatcher("/Welcome.jsp");

session.setAttribute("accessal", accessal);

session.setAttribute("ub", ub);

rd.forward(request, response);

} else {

System.out.println("else inside do login !!!");

rd = request.getRequestDispatcher("/Login.jsp?sucess=N");

rd.forward(request, response);

}

Page 67: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

67 | P a g e

} catch (SQLException e) {

e.printStackTrace();

}

}

}

Bean:

UserBean.java

package com.vartak.bean;

public class UserBean {

private String firstName=null;

private String lastName=null;

private String dateOfBirth=null;

private int uid=0;

private int Age=0;

private String uname =null;

private String pwd=null;

private String cno=null;

private String Gender =null;

private String email=null;

private String sucess="N";

private String role= null;

private int roleId= 0;

public int getRoleId() {

return roleId;

}

public void setRoleId(int roleId) {

this.roleId = roleId;

}

public String getFirstName() {

return firstName;

}

public void setFirstName(String firstName) {

this.firstName = firstName;

}

public String getLastName() {

Page 68: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

68 | P a g e

return lastName;

}

public void setLastName(String lastName) {

this.lastName = lastName;

}

public String getDateOfBirth() {

return dateOfBirth;

}

public void setDateOfBirth(String dateOfBirth) {

this.dateOfBirth = dateOfBirth;

}

public int getAge() {

return Age;

}

public void setAge(int age) {

Age = age;

}

public String getGender() {

return Gender;

}

public void setGender(String gender) {

Gender = gender;

}

public int getUid() {

return uid;

}

public void setUid(int uid) {

this.uid = uid;

}

public String getSucess() {

return sucess;

}

public void setSucess(String sucess) {

this.sucess = sucess;

}

public String getUname() {

return uname;

}

Page 69: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

69 | P a g e

public void setUname(String uname) {

this.uname = uname;

}

public String getPwd() {

return pwd;

}

public void setPwd(String pwd) {

this.pwd = pwd;

}

public String getCno() {

return cno;

}

public void setCno(String cno) {

this.cno = cno;

}

public String getEmail() {

return email;

}

public void setEmail(String email) {

this.email = email;

}

public String getRole() {

return role;

}

public void setRole(String role) {

this.role = role;

}

public String toString()

{

System.out.println("uname :"+uname);

System.out.println("uid :"+uid);

System.out.println("email :"+email);

System.out.println("role :"+role);

System.out.println("cno :"+cno);

System.out.println("pwd :"+pwd);

return cno;

}

Page 70: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

70 | P a g e

}

Integritysqlscript.sql :

create database if not exists Integritydatabase;

use Integritydatabase;

DROP TABLE UserDetails;

create table if not exists UserDetails (

Userid int not NULL auto_increment PRIMARY KEY ,

Firstname varchar(20),

Lastname varchar(20),

Username varchar(20)unique,

Password varchar(20),

DateOfBirth varchar(20),

gender varchar(20),

Contactno varchar(20),

Roleid int not null,

Email varchar(20));

Gantt

Chart

Page 71: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

71 | P a g e

Gantt Chart

Page 72: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

72 | P a g e

Future

Scope

Page 73: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

73 | P a g e

FURTHER SCOPE OF THE APPLICATION

1. The next version of the software will be more updated version.

2. It will also consist service section & storage module.

3. It will be more user friendly.

4. it will provide user with the more high performance and more stability

than this.

5. The next version of this software will be capable to store all the data

online.

Page 74: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

74 | P a g e

Conclusion

Page 75: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

75 | P a g e

CONCLUSIONS

This project has been a rewarding experience in more than one way. The entire

project work has enlightened us in the following areas.

I have gained an insight into the working of the INTEGRITY. This

represents a typical real world situation.

My understanding of database design has been strengthened this is

because in order to generate the final reports of database designing has to

be properly followed.

Scheduling a project and adhering to that schedule creates a strong sense

of time management.

Sense of teamwork has developed and confidence of handling real life

project has increased to a great extent.

Page 76: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

76 | P a g e

Initially, there were problem with the validation but with discussions, I

were to implement validations.

Bibliography

Page 77: Integrity Management System - Prof. Ajay Pashankar's Blog · Integrity Management System 1 ... proposed systems eliminate the drawbacks of the existing system ... The system would

Integrity Management System

77 | P a g e

BIBLIOGRAPHY

SITES:

https://www.google.co.in

http://www.tutorialspoint.com

http://www.w3schools.com/

REFERENCE BOOKS:

Java The Complete Reference - 7th Edition

Responsive.Web.Design.with.HTML5.and.CSS3