Project Document
Project Document
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 –
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
To start with my application you will need to follow some quick steps. Once you are done
you are okay to Vote.
Steps –
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
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
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.