0% found this document useful (0 votes)
74 views

Project Document

This document describes an online voting system project that allows students to vote for their preferred software development language. It includes registration and login pages, a voting page to select a language, and a statistics page to view results. The project uses a MySQL database with tables for user data and votes. It follows a MVC pattern with models for user data, a view in JSP pages, and controllers in servlets to handle tasks like login, registration, and voting. A JSON web service provides data to display in the web pages.

Uploaded by

Chaitu Muniraj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views

Project Document

This document describes an online voting system project that allows students to vote for their preferred software development language. It includes registration and login pages, a voting page to select a language, and a statistics page to view results. The project uses a MySQL database with tables for user data and votes. It follows a MVC pattern with models for user data, a view in JSP pages, and controllers in servlets to handle tasks like login, registration, and voting. A JSON web service provides data to display in the web pages.

Uploaded by

Chaitu Muniraj
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

2015

Online Voting System


Vote for your most preferred development
language!
"Online Voting System" is a simple web-based online voting system that will help our
college to know which development language students prefer the most for software
development. It is voting using electronic systems to aid casting and counting votes.

Ruchir Kute
Northwestern Polytechnic University
4/24/2015
Ruchir Kute Online Voting System
CS532(A)
ID: 12457

Table of Contents

1. Project Description
2. Services Provided
3. Intended Users for Project
4. How to start with my Application?
5. Database Structure
6. Model-View-Controller
7. Web service and Servlet performing the service

1
Ruchir Kute Online Voting System
CS532(A)
ID: 12457

Project Description

Every University college thinks of providing the best education to their students and the
best is defined by the most preferred and running technologies in market. The demand for
every technology is not the same. Every student will have his own preferred software
language for development. To help every college understand the need of the most
preferred technology by students, my project “Online Voting System” comes in to picture.

“Online Voting System” is simple web-based online voting systems that will help our college
to know student's most preferred language for development. Online voting (also known as
e-voting) is voting using electronic systems to aid casting and counting votes.

Remote e-Voting is where voting is performed within the voter’s sole influence, and is not
physically supervised by representatives (e.g. voting from one's personal computer, mobile
phone, television via the internet (also called i-voting). Electronic voting technology can
speed the counting of ballots and can provide efficiency in statistics.

In this project students have to register first by clicking on “Sign Up” button in order to vote
for their preferred development language. Once registered, they can sign in through the
"Student Login page" with their respective username and password. After successful sign in
they can go to "Vote Here" tab and register their vote by selecting any one language of their
choice and hitting the "Submit" button. Once done their vote will be registered. One vote
per student is allowed. In "Voting Statistics" tab students can see the total number of votes
received for each development language. This way the college will know the best
technology to include in their syllabus. Thank you!

2
Ruchir Kute Online Voting System
CS532(A)
ID: 12457

Services Provided

In this project various services have been provided. The basic things which every project
needs like –

 Login Page – Students can login to vote with their credentials


 Registration Page – New students have to register first to vote
 Index Page – Students can read about the project here
 Voting Page – Students can vote for their preferred software development language
here
 Voting Statistic Page – Students get to see the total voting statistics here
 Contact Page – If any one has any questions or a problem about the website they
can contact me by visiting this page

Intended Users for Project

Every University works on providing the right technology to their students which will help
them prosper in job market. This project has been developed by keeping in mind mainly the
college students and their most preferred software development language. In this project
even professors can vote if they want and see the statistics for maximum number of votes
obtained to a language.

3
Ruchir Kute Online Voting System
CS532(A)
ID: 12457

How to start with my application?

To start with my application you will need to follow some quick steps. Once you are done
you are okay to Vote.

Steps –

 Import the zip project folder in Eclipse


 Locate the Resources folder inside the project and run the DB_File.sql files to install
the desired schema, tables and Privileges to your system in order to run the project
 You are almost done now. Click on the given link which will route you to the
Login/Register Page. Link: “localhost:8080/VotingSystem/login.jsp”
 Now you must register clicking on the “Register me” button in order to vote for your
preferred language
 Once registered you may now login in with your correct credentials to register vote
 For your convenience I have already registered myself. You can directly sign in
through my username – ruchirkute and password – kute. Since I have already
registered my vote, you cannot register again. You will have to do a new registration
by your name and then can vote.

4
Ruchir Kute Online Voting System
CS532(A)
ID: 12457

Database Structure

For this application, the database is created by using the MySQL Workbench. The following
below information highlights my database entities –

1. Schema
 votingdatabase
2. Tables & Columns
 studentdata
 id (INT(11) Primary Key, Not Null, Auto Increment)
 fname (VARCHAR(45) Not Null)
 lname (VARCHAR(45) Not Null)
 username (VARCHAR(45) Not Null, Unique)
 password (VARCHAR(45) Not Null)
 devlang
 id (INT(11) Primary Key, Not Null, Auto Increment)
 username (VARCHAR(45) Unique)
 votes (VARCHAR(45))

5
Ruchir Kute Online Voting System
CS532(A)
ID: 12457

Model-View-Controller

In this project the Model-View-Controller (MVC) implementation has been used in an


efficient way. Below is the hierarchy for the MVC implementation –

 Model (edu.npu.votingsystem.domain)
a. Register.java
b. Vote.java
 View (VotingSystem/WebContent folder)
a. login.jsp
b. register.jsp
c. index.jsp
d. vote.jsp
e. vote-stats.jsp
f. contact.jsp
 Controller (edu.npu.votingsystem.servlets)
a. LoginServlet.java
b. LogoutServlet.java
c. RegistrationServlet.java
d. VotingServlet.java
 Database (edu.npu.votingsystem.database)
a. VotingBin.java

Web service and Servlet performing the service

The data provided by my web service is JSON Data from the database. The servlet named
JasonServlet.java will perform the JSON generation and pass the object to the JSP page.
Once you go to the “Web Service”, you will automatically see the Jason data fetched in to
the webpage. The field displayed will be ID, Username and Password.

You might also like