100% found this document useful (2 votes)
4K views104 pages

"Online Voting System": A Project On

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 104

A

PROJECT
On

ONLINE VOTING SYSTEM


BACHELOR OF COMPUTER APPLICATION (BCA)
SESSION 2014-15

Submitted To:

DEWAN INSTITUTE OF MANAGEMENT STUDIES,


MEERUT
Affiliated to CCS, university, Meerut
Submitted To :

Submitted By:
PANKAJ KUMAR
Roll No- 9866095
BCA VI SEM
Batch- 2012-2015

Mr. NEERAJ GUPTA


Faculty BCA Dept.

CERTIFICATE

This is to certify that this project titled ONLINE VOTING


SYSTEM carried out by Rahul Kumar, Student of BCA
Semester

VI,

Management
approved

after

Session
Studies,
paper

2012-2015

Dewan

Meerut

hereby

evaluation

is

partial

Institute
accepted

fulfillment

of
and

of

the

requirement for the award of the degree of Bachelor of


Computer Application from CSS University, Meerut
Mr. Naveen Chandra
H.O.D

Dept.

application
DIMS, Meerut

of

Computer

ACKNOWLEDGEMENT
The project a part of the curriculum of BCA program is an assignment in that
provided me an exposure to real life project development in a government
environment. I would like to add a few deepest words from the people who help me
in numerous way in completing the project, and who gave the incessant support
right from the scratch of the project
I thank Mr. Neeraj Gupta give me valuable inputs from this project.
I thank my project guide Mr. Naveen Chandra H.O.D., for the valuable
guidance.
I express my Deepest Gratitude to All Faculty project Co-Ordinater for His
Constant Encouragement and Support.

I also heartily thank my friends who were of immense support in development of his
project. I thank my batch mates for providing may the more support and wishes.
Last but not the least, I submit my thanks to my family who had provided constant
help and support completing project

PREFACE

Generation of high quality skilled manpower in computer software area


assumed great significance in the context of the changed global scenario.
Information technology due to undergoing rapid technological development
has been the fastest growing sector of the Indian industry. Computer has
invaded our society and become integral part of our lives. Computer
programming is a demanding skill, much like creative, writing or playing a
musical instrument.
The project, ONLINE VOTING SYSTEM presents a
contemporary approach to programming, stressing the importance of clarity,
legibility, modularity and efficiency in program design. The subject matter of
this project has been presented in simple language and lucid style. The use
of an interactive programming suited for advanced processing of any
organization and can be better used in a better way in the context of the
changed scenario, for our payroll system in place of the existing one.
Throughout the project the focus has been on presenting

information and

comments in an easy and intelligible manner. The project is very useful for
those

who

want

to

know

about

Employee

Payroll

Management System.

TABLE OF CONTENTS

Certificate
4

And

Attendance

Acknowledgement
Preface
Overview of the project
Objectives of the project
Hardware & Software requirements
Components of Java
SDLC
Feasibility
Data Designing
DFD
ER-Diagram
Data Base Tables

Table Structure
Form Design
Coding of the project
Testing & Debugging Techniques
Scope
Conclusion
Bibliography

OVERVIEW OF THE PROJECT

Internet voting will allow the casting of electronic ballots from virtually any
location around the world.
Elections may be organized in many different ways. Paper-based elections
make use of paper ballots, while automated elections make use of some kind
of voting machines that automate the voting and/or tabulation procedures.
When the voting machines are actually implemented by computers, we talk
about electronic voting.
Online voting systems are much more formal than online polling systems,
because they seek (or should seek) to accurately reflect the voters'
preferences.
The present report focuses on online (electronic) voting systems. If the
network used is the Internet, this fact may be emphasized by using the term
Internet voting instead.
OBJECTIVE OF THE PROJECT

The main objectives of system for Online voting system are:


The objective of Online voting system is to help the organization in
automating the whole manual processing of the existing system.

The main objective to develop the system is to make the accurate & efficient
decisions in different tasks at different time at different situations. The
existing system is manual so members of the uni
generally face a lot of embarrassing situations many times. Now they need
to automate the whole process so as to make it more easy and accurate.
System should support multi-user environment.
System should be fully automated.
System should provide concrete security features like creating users and
assigning privileges to users of the system.
System should be capable to keep track of all the detailed descriptions of the
client and the whole details of services offered by the client organization.
Various outputs (reports) should be available online any time.
SYSTEM SPECIFICATION
3.1. System Requirements:

Hardware Requirements:
System

: Pentium IV 2.4 GHz.

Floppy Drive

: 2.44 Mb.

Monitor

15 VGA color

Software Requirements:
Operating system : Windows XP.
7

Coding Language : JSP,java script


Data Base
3.2.

: Oracle 10g

Functional Requirements

Registration of the voter is done by ELECTION COMMISION OF INDIA.


ELECTION COMMISION OF INDIA can change the information any time if
required.
Registration of the Voter depends upon the information filled by the user.
Voter is given a unique ID and PASSWORD.

Voter can give vote after login and entering the ID and PASSWORD.

In the DATABASE information of every voter is stored.

Database shows the information of every user.


Non-Functional Requirements
1. Secure access of confidential data (users details). SSL can be used.
2. 24 X 7 availability.
3. Better component design to get better performance at peak time.
4.

Flexible service based architecture will be highly desirable for future


extension.
EXISTING SYSTEM

Paper-based voting systems originated as a system where votes are cast


and counted by hand, using paper ballots. With the advent of electronic
tabulation came systems where paper cards or sheets could be marked by
8

hand, but counted electronically. These systems included punched card


voting, marksense and later digital pen voting systems.Most recently, these
systems can include an Electronic Ballot Marker (EBM), that allow voters to
make their selections using an electronic input device. A direct-recording
electronic voting machine records votes by means of a ballot display
provided with mechanical or electro-optical components that can be
activated by the voter (typically buttons or a touchscreen); that processes
data with computer software; and that records voting data and ballot images
in memory components. After the election it produces a tabulation of the
voting data stored in a removable memory component and as printed copy.
The system may also provide a means for transmitting individual ballots or
vote totals to a central location for consolidating and reporting results from
precincts at the central location. These systems use a precinct count method
that tabulates ballots at the polling place. They typically tabulate ballots as
they are cast and print the results after the close of polling.
COMPONENTS OF JAVA
PROPOSED SYSTEM
ONLINE VOTING SYSTEM is a voting system by which any Voter can use
his\her voting rights from any where in India.

Planned approach towards working: - The working in the organization will


be well planned and organized. The data will be stored properly in data stores,
which will help in retrieval of information as well as its storage.
Accuracy: - The level of accuracy in the proposed system will be higher. All
operation would be done correctly and it ensures that whatever information is
coming from the center is accurate.
Reliability: - The reliability of the proposed system will be high due to the
above stated reasons. The reason for the increased reliability of
the system is that now there would be proper storage of information.
No Redundancy: - In the proposed system utmost care would be that no
information is repeated anywhere, in storage or otherwise. This would assure
economic use of storage space and consistency in the data stored.
Immediate retrieval of information: - The main objective of proposed system
is to provide for a quick and efficient retrieval of information.
Immediate storage of information: - In manual system there are many
problems to store the largest amount of information.
Easy to Operate: - The system should be easy to operate and should be such
that it can be developed within a short period of time and fit in the limited
budget of the user.

PURPOSE

In ONLINE VOTING SYSTEM a voter can use his\her voting right online
without any difficulty. He\She has to fill a registration form to register
10

himself\herself. All the entries is checked by the DATABASE which has already all
information about the voter. If all the entries are correct then a USER ID and
PASSWORD is given to the voter, by using that ID and PASSWORD he\she can
use his\her vote. If conditions are wrong then that entry will be discarded.
Modules
Administrator Module - Administrator has the whole authority of the
organization .He is the one who maintains all the aspects of voters and
candidates. Administrator's have the provision to view the list of
voters candidates and results .
User Administrator Module - User's have the provision to vote for
their desired candidate.

SYSTEM STUDY

Feasibility Study

11

Depending on the results of the initial investigation the survey is now expanded to a
more detailed feasibility study. FEASIBILITY STUDY is a test of system
proposal according to its workability, impact of the organization, ability to meet
needs and effective use of the resources. It focuses on these major questions:
1. What are the users demonstrable needs and how does a candidate system meet
them?
2. What resources are available for given candidate system?
3. What are the likely impacts of the candidate system on the organization?
4. Whether it is worth to solve the problem?
During feasibility analysis for this project, following primary areas of interest are to
be considered. Investigation and generating ideas about a new system does this.
Technical Feasibility

A study of resource availability that may affect the ability to achieve an acceptable
system. This evaluation determines whether the technology needed for the proposed
system is available or not.
Can the work for the project be done with current equipment existing software
technology & available personal?
Can the system be upgraded if developed?
If new technology is needed then what can be developed?
This is concerned with specifying equipment and software that will
successfully satisfy the user requirement.
12

Economical Feasibility
Economic justification is generally the Bottom Line consideration for most
systems. Economic justification includes a broad range of concerns that includes
cost benefit analysis. In this we weight the cost and the benefits associated with the
candidate system and if it suits the basic purpose of the organization i.e. profit
making, the project is making to the analysis and design phase.
Operational Feasibility
It is mainly related to human organizations and political aspects. The points to be
considered are:
What changes will be brought with the system?

What organization structures are disturbed?

What new skills will be required? Do the existing staff members have these
skills? If not, can they be trained in due course of time?
The system is operationally feasible as it very easy for the End users to operate it. It
only needs basic information about Windows platform.
Schedule Feasibility
Time evaluation is the most important consideration in the development of project.
The time schedule required for the developed of this project is very important since
more development time effect machine time, cost and cause delay in the
development of other systems.
A reliable Online voting system can be developed in the considerable amount of
time .
DATA DESIGINING
13

14

15

4.3. ER DIAGRAM

Registration

User

UserAdmin

id
Login
VOTING

VotingDESIGN
5.SYSTEM
complete

16

Pass

In Analysis of the System, we have seen what a system should do. In System
Design phase the emphasis will be on how to do what a system should do.
There are two main approaches to design:
1.

Data Centered Approach.

2.

Process Centered Approach

The present project is designed based on Data Centered Approach as the modern
school of thinking on this subject is that if data is organized effectively the
processes can always be designed in such a way that the data is made available to
them.
The principle of Object Oriented Design (OOD) is adapted where designing is
defined as a collection of data and its associated characteristics (processes) as
objects. These objects are inline with real life objects.

Logical Design:
Data Structured approach is being adapted since data can be associated with
physical structures which can see and feel and it is therefore logical to start with
data rather than processes which are invisible--. They are there, but processes
cannot be touched or felt.
Logical Design deals with aspects of design which can be implemented on any
operating environment i.e. one need not know on which machine or operating
system or database the system is going to be working.
In physical design, the output of logical design is implemented using the features
of a particular environment.

17

LIST OF TABLES
LOGINPOL TABLE
Column Name
ID
PASSWORD
NAME
AGE
GENDER
FATHERNAME
ADDRESS
PHONENUMBER

Data Type
NUMBER
VARCHAR2(20)
VARCHAR2(20)
NUMBER
VARCHAR2(20)
VARCHAR2(20)
VARCHAR2(20)
NUMBER

Nullable
NO
YES
YES
YES
YES
YES
YES
YES

Primary Key
1
-

VOTECOUNT TABLE
Column Name
NAME
VOTE

Data Type
VARCHAR2(20)
NUMBER

Nullable
YES
NO

CODING
ABOUTUS.JSP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>About Us - VOTING SYSTEM</title>
</head>
<body >
18

<div id="header">
<div id="navigation">
<ul>
<li><a href="home.jsp">Home</a></li>
<li><a href="index.jsp">UserRegistration </a></li>
<li><a href="login.jsp">UserAdmin </a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
</TABLE>

<table width="100%" border="0" cellspacing="18" cellpadding="0">


<tr>
<td class="bodyheading"><center> VOTING SYSTEM</td>
</tr>
<tr>
<td class="bodytext">
<p align="center" class="bodytextheading"><img id="noborder" src="vote.jpg" width="165" height="208"><br>
<p align="justify" class="bodytextheading">VOTING SYSTEM
</p>
<p align="justify"> A voting system or electoral system is a method
by which voters make a choice between options, often in an election or on a policy
referendum. A voting system enforces rules to ensure valid voting, and how votes
are counted and aggregated to yield a final result.
Common voting systems are majority rule, proportional representation or
plurality voting with a number of variations and methods such as first-past-the-post
or preferential voting.
19

The study of formally defined voting systems is called social


choice theory or voting theory, a subfield of political science, economics, or
mathematics.
A voting system specifies the form of the ballot, the set of
allowable votes, and the tallying method, an algorithm for determining the
outcome.<br>
</p>
<p align="justify" class="bodytextheading">ONLINE VOTING
SYSTEM</p>
<p align="justify">In ONLINE VOTING SYSTEM a voter can
use his voting right online without any difficulty.
He has to fill a registration form to register himself. All the
entries is checked by the database which has already all information about the
voter.
If all the entries are correct then a user id and password is given
to the voter, by using that id and password he\she can use his\her vote.
There is a database which is maintained by the Election
Commision of India in which all the names of voter with complete information is
stored.</p>
<p align="justify" class="bodytextheading"> ELECTIONS IN
INDIA</p>
<p align="justify">India has an asymmetric federal government,
with elected officials at the federal, state and local levels. At the national level, the
head of government, Prime Minister, is elected by the members of Lok Sabha,
lower house of the parliament of India.
All members of Lok Sabha except two, who can be nominated
by president of India, are directly elected through general elections which takes
place every five years, in normal circumstances, by universal adult suffrage.
Members of Rajya Sabha, upper house of Indian parliament, are elected by elected
members of the legislative assemblies of states and electoral college for Union
Territories of India.
Government schools and colleges are chosen as polling
stations. The Collector of each district is in charge of polling. Government
employees are employed to many of the polling stations. Electronic Voting
Machines (EVMs) are being increasingly used instead of ballot boxes to prevent
election fraud via booth capturing, which is heavily prevalent in certain parts of
India. An indelible ink is applied usually on the left index finger of the voter as an
indicator that the voter has cast his vote.
20

For few cities in India, the voter registration forms can be


generated online and submitted to the nearest electoral office.</p>
</td>
</tr>
</table>
</td><td width="25">&nbsp;</td>
</tr>
</table>
<table width="100%" height="26" border="0" cellpadding="0"
cellspacing="0">
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="7" cellpadding="0">
<tr>
<td>
Common voting systems are majority rule, proportional representation or
plurality voting with a number of variations and methods such as first-past-the-post
or preferential voting.
The study of formally defined voting systems is called social
choice theory or voting theory, a subfield of political science, economics, or
mathematics.
A voting system specifies the form of the ballot, the set of
allowable votes, and the tallying method, an algorithm for determining the
outcome.<br>
</p>
<p align="justify" class="bodytextheading">ONLINE VOTING
SYSTEM</p>
<p align="justify">In ONLINE VOTING SYSTEM a voter can
use his voting right online without any difficulty.

21

He has to fill a registration form to register himself. All the


entries is checked by the database which has already all information about the
voter.
If all the entries are correct then a user id and password is given
to the voter, by using that id and password he\she can use his\her vote.
There is a database which is maintained by the Election
Commision of India in which all the names of voter with complete information is
stored.</p>
<p align="justify" class="bodytextheading"> ELECTIONS IN
INDIA</p>
<p align="justify">India has an asymmetric federal government,
with elected officials at the federal, state and local levels. At the national level, the
head of government, Prime Minister, is elected by the members of Lok Sabha,
lower house of the parliament of India.
All members of Lok Sabha except two, who can be nominated
by president of India, are directly elected through general elections which takes
place every five years, in normal circumstances, by universal adult suffrage.
Members of Rajya Sabha, upper house of Indian parliament, are elected by elected
members of the legislative assemblies of states and electoral college for Union
Territories of India.
Government schools and colleges are chosen as polling
stations. The Collector of each district is in charge of polling. Government
employees are employed to many of the polling stations. Electronic Voting
Machines (EVMs) are being increasingly used instead of ballot boxes to prevent
election fraud via booth capturing, which is heavily prevalent in certain parts of
India. An indelible ink is applied usually on the left index finger of the voter as an
indicator that the voter has cast his vote.
For few cities in India, the voter registration forms can be
generated online and submitted to the nearest electoral office.</p>
</td>
</tr>
</table>
</td><td width="25">&nbsp;</td>
</tr>
</table>

22

<table width="100%" height="26" border="0" cellpadding="0"


cellspacing="0">
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="7" cellpadding="0">
<tr>
<td>
Common voting systems are majority rule, proportional representation or
plurality voting with a number of variations and methods such as first-past-the-post
or preferential voting.
The study of formally defined voting systems is called social
choice theory or voting theory, a subfield of political science, economics, or
mathematics.
A voting system specifies the form of the ballot, the set of
allowable votes, and the tallying method, an algorithm for determining the
outcome.<br>
</p>
<p align="justify" class="bodytextheading">ONLINE VOTING
SYSTEM</p>
<p align="justify">In ONLINE VOTING SYSTEM a voter can
use his voting right online without any difficulty.
He has to fill a registration form to register himself. All the
entries is checked by the database which has already all information about the
voter.
If all the entries are correct then a user id and password is given
to the voter, by using that id and password he\she can use his\her vote.
There is a database which is maintained by the Election
Commision of India in which all the names of voter with complete information is
stored.</p>
<p align="justify" class="bodytextheading"> ELECTIONS IN
INDIA</p>
<p align="justify">India has an asymmetric federal government,
with elected officials at the federal, state and local levels. At the national level, the
head of government, Prime Minister, is elected by the members of Lok Sabha,
lower house of the parliament of India.

23

All members of Lok Sabha except two, who can be nominated


by president of India, are directly elected through general elections which takes
place every five years, in normal circumstances, by universal adult suffrage.
Members of Rajya Sabha, upper house of Indian parliament, are elected by elected
members of the legislative assemblies of states and electoral college for Union
Territories of India.
Government schools and colleges are chosen as polling
stations. The Collector of each district is in charge of polling. Government
employees are employed to many of the polling stations. Electronic Voting
Machines (EVMs) are being increasingly used instead of ballot boxes to prevent
election fraud via booth capturing, which is heavily prevalent in certain parts of
India. An indelible ink is applied usually on the left index finger of the voter as an
indicator that the voter has cast his vote.
For few cities in India, the voter registration forms can be
generated online and submitted to the nearest electoral office.</p>
</td>
</tr>
</table>
</td><td width="25">&nbsp;</td>
</tr>
</table>
<table width="100%" height="26" border="0" cellpadding="0"
cellspacing="0">
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="7" cellpadding="0">
<tr>
<td>
Common voting systems are majority rule, proportional representation or
plurality voting with a number of variations and methods such as first-past-the-post
or preferential voting.

24

The study of formally defined voting systems is called social


choice theory or voting theory, a subfield of political science, economics, or
mathematics.
A voting system specifies the form of the ballot, the set of
allowable votes, and the tallying method, an algorithm for determining the
outcome.<br>
</p>
<p align="justify" class="bodytextheading">ONLINE VOTING
SYSTEM</p>
<p align="justify">In ONLINE VOTING SYSTEM a voter can
use his voting right online without any difficulty.
He has to fill a registration form to register himself. All the
entries is checked by the database which has already all information about the
voter.
If all the entries are correct then a user id and password is given
to the voter, by using that id and password he\she can use his\her vote.
There is a database which is maintained by the Election
Commision of India in which all the names of voter with complete information is
stored.</p>
<p align="justify" class="bodytextheading"> ELECTIONS IN
INDIA</p>
<p align="justify">India has an asymmetric federal government,
with elected officials at the federal, state and local levels. At the national level, the
head of government, Prime Minister, is elected by the members of Lok Sabha,
lower house of the parliament of India.
All members of Lok Sabha except two, who can be nominated
by president of India, are directly elected through general elections which takes
place every five years, in normal circumstances, by universal adult suffrage.
Members of Rajya Sabha, upper house of Indian parliament, are elected by elected
members of the legislative assemblies of states and electoral college for Union
Territories of India.
Government schools and colleges are chosen as polling
stations. The Collector of each district is in charge of polling. Government
employees are employed to many of the polling stations. Electronic Voting
Machines (EVMs) are being increasingly used instead of ballot boxes to prevent
election fraud via booth capturing, which is heavily prevalent in certain parts of
India. An indelible ink is applied usually on the left index finger of the voter as an
indicator that the voter has cast his vote.
25

For few cities in India, the voter registration forms can be


generated online and submitted to the nearest electoral office.</p>
</td>
</tr>
</table>
</td><td width="25">&nbsp;</td>
</tr>
</table>
<table width="100%" height="26" border="0" cellpadding="0"
cellspacing="0">
</table>
</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="7" cellpadding="0">
<tr>
<td>
Common voting systems are majority rule, proportional representation or
plurality voting with a number of variations and methods such as first-past-the-post
or preferential voting.
The study of formally defined voting systems is called social
choice theory or voting theory, a subfield of political science, economics, or
mathematics.
A voting system specifies the form of the ballot, the set of
allowable votes, and the tallying method, an algorithm for determining the
outcome.<br>
</p>
<p align="justify" class="bodytextheading">ONLINE VOTING
SYSTEM</p>
<p align="justify">In ONLINE VOTING SYSTEM a voter can
use his voting right online without any difficulty.
He has to fill a registration form to register himself. All the
entries is checked by the database which has already all information about the
voter.

26

If all the entries are correct then a user id and password is given
to the voter, by using that id and password he\she can use his\her vote.
There is a database which is maintained by the Election
Commision of India in which all the names of voter with complete information is
stored.</p>
<p align="justify" class="bodytextheading"> ELECTIONS IN
INDIA</p>
<p align="justify">India has an asymmetric federal government,
with elected officials at the federal, state and local levels. At the national level, the
head of government, Prime Minister, is elected by the members of Lok Sabha,
lower house of the parliament of India.
All members of Lok Sabha except two, who can be nominated
by president of India, are directly elected through general elections which takes
place every five years, in normal circumstances, by universal adult suffrage.
Members of Rajya Sabha, upper house of Indian parliament, are elected by elected
members of the legislative assemblies of states and electoral college for Union
Territories of India.
Government schools and colleges are chosen as polling
stations. The Collector of each district is in charge of polling. Government
employees are employed to many of the polling stations. Electronic Voting
Machines (EVMs) are being increasingly used instead of ballot boxes to prevent
election fraud via booth capturing, which is heavily prevalent in certain parts of
India. An indelible ink is applied usually on the left index finger of the voter as an
indicator that the voter has cast his vote.
For few cities in India, the voter registration forms can be
generated online and submitted to the nearest electoral office.</p>
</td>
</tr>
</table>
</td><td width="25">&nbsp;</td>
</tr>
</table>
<table width="100%" height="26" border="0" cellpadding="0"
cellspacing="0">
</table>
27

</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="7" cellpadding="0">
<tr>
<td>
ADMINLOGIN.JSP
<center><form action="adminpage.jsp">
<link href="style.css" rel="stylesheet" type="text/css">
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="index.jsp">UserRegistration </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>

ID: <input type="text" name="id"/>


<br>Password:<input type="password" name="password"/><br>
<input type="submit" value="submit"/>
</form>
<tr><td colspan="10"><img src="admin.jpg" width="100%"
height="80%"/></td></tr>
</td>
</body>
</center>
<div id="footer">
28

<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a


href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->

29

ADMINPAGE.JSP
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
30

<link href="style.css" rel="stylesheet" type="text/css">


<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out all Fields")
document.F1.name.focus()
return false
}
}
if(!isNaN(document.F1.name.value))
{
alert("User Name must be char's & can't be null")
document.F1.name.value=""
document.F1.name.focus()
return false
}
if(isNaN(document.F1.id.value))
{
alert("coustmer id must be number & can't be null")
document.F1.id.value=""
document.F1.id.focus()
return false
}
if(!isNaN(document.F1.fathername.value))
{
alert("Father name must be char's & can't be null")
document.F1.fathername.value=""
document.F1.fathername.focus()
return false
}
if(!isNaN(document.F1.address.value))
{
alert("address must be char's & can't be null")
document.F1.address.value=""
document.F1.address.focus()
31

return false
}
if(isNaN(document.F1.phonenumber.value))
{
alert("phone number must be number")
document.F1.phonenumber.value=""
return false
}

if(isNaN(document.F1.age.value))
{
alert("age must be number")
document.F1.age.value=""
return false
}
return true
}
</SCRIPT>
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
32

<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out all Fields")
document.F1.name.focus()
return false
}
}
if(!isNaN(document.F1.name.value))
33

{
alert("User Name must be char's & can't be null")
document.F1.name.value=""
document.F1.name.focus()
return false
}
if(isNaN(document.F1.id.value))
{
alert("coustmer id must be number & can't be null")
document.F1.id.value=""
document.F1.id.focus()
return false
}
if(!isNaN(document.F1.fathername.value))
{
alert("Father name must be char's & can't be null")
document.F1.fathername.value=""
document.F1.fathername.focus()
return false
}
if(!isNaN(document.F1.address.value))
{
alert("address must be char's & can't be null")
document.F1.address.value=""
document.F1.address.focus()
return false
}
if(isNaN(document.F1.phonenumber.value))
{
alert("phone number must be number")
document.F1.phonenumber.value=""
return false
}

34

if(isNaN(document.F1.age.value))
{
alert("age must be number")
document.F1.age.value=""
return false
}
return true
}
</SCRIPT>
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
35

{
if(form.elements[i].value == "")
if(isNaN(document.F1.age.value))
{
alert("age must be number")
document.F1.age.value=""
return false
}
return true
}
</SCRIPT>
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
36

{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out all Fields")
document.F1.name.focus()
return false
}
}
if(!isNaN(document.F1.name.value))
{
alert("User Name must be char's & can't be null")
document.F1.name.value=""
document.F1.name.focus()
return false
}
if(isNaN(document.F1.id.value))
{
alert("coustmer id must be number & can't be null")
document.F1.id.value=""
document.F1.id.focus()
return false
}
if(!isNaN(document.F1.fathername.value))
{
alert("Father name must be char's & can't be null")
document.F1.fathername.value=""
document.F1.fathername.focus()
return false
}
if(!isNaN(document.F1.address.value))
{
alert("address must be char's & can't be null")
document.F1.address.value=""
document.F1.address.focus()
return false
}
37

if(isNaN(document.F1.phonenumber.value))
{
alert("phone number must be number")
document.F1.phonenumber.value=""
return false
}

if(isNaN(document.F1.age.value))
{
alert("age must be number")
document.F1.age.value=""
return false
}
return true
}
</SCRIPT>
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
38

<title> VAST </title>


<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out all Fields")
document.F1.name.focus()
return false
}
}
if(!isNaN(document.F1.name.value))
{
alert("User Name must be char's & can't be null")
document.F1.name.value=""
document.F1.name.focus()
return false
}
if(isNaN(document.F1.id.value))
{
alert("coustmer id must be number & can't be null")
document.F1.id.value=""
document.F1.id.focus()
return false
}
if(!isNaN(document.F1.fathername.value))
{
alert("Father name must be char's & can't be null")
document.F1.fathername.value=""
document.F1.fathername.focus()
return false
39

}
if(!isNaN(document.F1.address.value))
{
alert("address must be char's & can't be null")
document.F1.address.value=""
document.F1.address.focus()
return false
}
if(isNaN(document.F1.phonenumber.value))
{
alert("phone number must be number")
document.F1.phonenumber.value=""
return false
}

if(isNaN(document.F1.age.value))
{
alert("age must be number")
document.F1.age.value=""
return false
}
return true
}
</SCRIPT>
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
40

<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<html>
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript">
function fun(form)
{
for(var i=0; i<form.elements.length; i++)
{
if(form.elements[i].value == "")
{
alert("Fill out all Fields")
document.F1.name.focus()
return false
}
}
if(!isNaN(document.F1.name.value))
{
alert("User Name must be char's & can't be null")
document.F1.name.value=""
document.F1.name.focus()
return false
}
if(isNaN(document.F1.id.value))
{
alert("coustmer id must be number & can't be null")
document.F1.id.value=""
document.F1.id.focus()
41

return false
}
if(!isNaN(document.F1.fathername.value))
{
alert("Father name must be char's & can't be null")
document.F1.fathername.value=""
document.F1.fathername.focus()
return false
}
if(!isNaN(document.F1.address.value))
{
alert("address must be char's & can't be null")
document.F1.address.value=""
document.F1.address.focus()
return false
}
if(isNaN(document.F1.phonenumber.value))
{
alert("phone number must be number")
document.F1.phonenumber.value=""
return false
}

if(isNaN(document.F1.age.value))
{
alert("age must be number")
document.F1.age.value=""
return false
}
return true
42

}
</SCRIPT>
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="login.jsp">Useradmin</a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
</div>
<table width="960" border="0" cellspacing="5" cellpadding="0" align="center">
<tr align="center">
<td valign="top" width="220px">
<img src="ldh4.jpg" alt="" border="0" /> <br />
<title> VAST </title>
<h1 align="center">REGISTRATION FORM</h1>
</head>
<center>
<body>
<table border="1" bordercolor="black"><tr><td>
<form name=F1 onSubmit="return fun(this)" action="insert.jsp"
><center><table border="0" align=center>
<tr align="left"><td> Id(in number) :</td><td><input type="text" name="id"
maxlength="3" ></td></tr>
<tr align="left"> <td> Password :</td><td><input type="password"
name="password" maxlength="6" /></td></tr>
<tr align="left"> <td> Name :</td><td> <input type="text" name="name"
maxlength="12" /> </td></tr>
<tr align="left"><td> Age :</td><td><input type="text" name="age"
maxlength="2" ></td></tr>
Male<input type="radio" name="gender" value="male"> Female<input
type="radio" name="gender" value="female"/><br/><br/>

43

<tr align="left"><td> Father's Name:</td> <td><input type="text"


name="fathername" maxlength="12" ></td></tr>
<tr align="left" ><td> Address :</td><td><input type="text" name="address"
maxlength="15" ></td></tr>
<tr align="left" ><td> Phone number :</td><td><input type="text"
name="phonenumber" maxlength="10" ></td></tr>
<tr align="left"><td>Nationality :</td><td> INDIAN</td></tr>
<tr align="left"><td> City :</td><td> MODINAGAR </td></tr>
<tr><td><input type="RESET"></td>
<td><input type="submit" value="SUBMIT" /></td></tr>
</table></center>
</form>
</td></tr></table>
</center>
</body>
</html>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->

INSERT.JSP
<%@page import="java.sql.*" %>
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","system","or
acle");
PreparedStatement pr = con.prepareStatement("insert into loginpol
values(?,?,?,?,?,?,?,?)");

44

String id = request.getParameter("id");
String password = request.getParameter("password");
String name = request.getParameter("name");
String age = request.getParameter("age");
String gender = request.getParameter("gender");
String fathername = request.getParameter("fathername");
String address = request.getParameter("address");
String phonenumber = request.getParameter("phonenumber");

pr.setString(1, id);
pr.setString(2, password);
pr.setString(3, name);
pr.setString(4, age);
pr.setString(5, gender);
pr.setString(6, fathername);
pr.setString(7, address);
pr.setString(8, phonenumber);
int val= pr.executeUpdate();
if(val>0){
out.print("successfully added");
}else
{
out.print("not added");
}
%>
<input type="submit" value="Home"/>
<%
RequestDispatcher rs =request.getRequestDispatcher("logout.jsp");
rs.forward(request, response);

%>

45

LOGIN.JSP
<form action="check.jsp">
<link href="style.css" rel="stylesheet" type="text/css">
<div id="header">
<div id="navigation">
<ul>
<li><a href="home.jsp">Home</a></li>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="index.jsp">UserRegistration</a></li>
<li><a href="adminlogin.jsp">ADMINISTRATOR </a></li>
<li><a href="contactus.jsp">Contact Us</a></li>
</ul>
</div>
<center>ID<input type="text" name="id">
password<input type="password" name="password"e>
<br><input type="submit" value="submit"/></center></form>
<tr><td colspan="15"><img src="votel.jpg" width="80%"
height="60%"/></td></tr>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->

LOGOUT.JSP
<link href="style.css" rel="stylesheet" type="text/css">
<form>
<%
out.print("Your record has been inserted");%>
<br>
<a href="home.jsp">back to home page</a>
</form>
46

<br>
<br>
<br>
<br>
<br>
<br>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
MODINAGAR.JSP
<html>
<link href="style.css" rel="stylesheet" type="text/css">
<head>
<link href="style.css" rel="stylesheet" type="text/css">
<title>VAST</title>
<center>
<h1>VOTE FOR THE CHAIRMAN POST........FOR MODINAGAR</h1>
</center>
<tr><td colspan="12"><img src="E.jpg" width="75%"
height="60%"/></td></tr>
</head><center><form action="count.jsp">

<table border="0" width="40" cellspacing="20" cellpadding="20">


<thead>
<tr>
<td valign="top" >
<img src="b.jpg.png" /><th><input type="radio" name="bt1"
value="Vineet"/>Vineet</th>
<td valign="top" >
47

<img src="hand.gif" /><th><input type="radio" name="bt1"


value="Sumit" />Sumit</th>
</tr>
</thead>
<tbody>
<tr>
<td valign="top" >
<img src="LOTUS2.jpg" /><th><input type="radio" name="bt1"
value="Rohit" />Rohit</th>
<td valign="top" >
<img src="l.jpg" /><th><input type="radio" name="bt1"
value="Abhishek" />Abhishek</th>
</tr>
</tbody>
</table>
<input type="submit" value="Submit" />
</form>
</center>
</html>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
RESULT.JSP
<link href="style.css" rel="stylesheet" type="text/css">
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
48

<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
49

</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>

50

<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"


height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
51

<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
52

Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
53

Statement stmt = con.createStatement();


ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
54

out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
55

out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
56

}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
57

<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a


href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
58

<!-- end #footer -->


<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
59

<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
60

<li><a href="aboutus.jsp">About Us</a></li>


<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
61

<li><a href="detailsofvoter.jsp">Details of voter </a></li>


<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
62

</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>

63

<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"


height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
64

<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
65

Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
66

Statement stmt = con.createStatement();


ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
67

out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
68

out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
69

}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
70

<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a


href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
71

<!-- end #footer -->


<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
72

<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
73

<li><a href="aboutus.jsp">About Us</a></li>


<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
74

<li><a href="detailsofvoter.jsp">Details of voter </a></li>


<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
75

</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>

76

<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"


height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
77

<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
78

Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
<div id="header">
<div id="navigation">
<ul>
<li><a href="aboutus.jsp">About Us</a></li>
<li><a href="home.jsp">Home</a></li>
<li><a href="adminlogin.jsp">Administrator </a></li>
<li><a href="detailsofvoter.jsp">Details of voter </a></li>
<li><a href="contactus.jsp">Contactus</a></li>
</ul>
</div>
<tr><td colspan="15"><img src="vote_counts_button.jpg" width="100%"
height="60%"/></td></tr>
%@page import="java.sql.*" %
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
79

Statement stmt = con.createStatement();


ResultSet rs = stmt.executeQuery("select * from votecount");
while (rs.next()) {
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbs
p&nbsp&nbsp&nbsp"+rs.getString(1));
out.print("&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp"+rs.getInt(2)+"<br
><br>");
}
%>
<div id="footer">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a
href="http://www.google.com">online voting system</a>.</p>
</div>
<!-- end #footer -->
STYLE.CSS
body{
color:#232323;
background:#f0f3f0;
}
#navigation
{
height:116px;
width:960px;
}
#navigation ul li
{
font:normal 14px/40px Arial, Helvetica, sans-serif;
display:block;
padding:0 30px;
margin-top:50px;
float:left;
80

text-align:center;
}
#navigation ul li a
{
text-decoration:none;
display:block;
color:#034ea2;
}
#navigation ul li a:hover
{
position: relative;
float: left;
width: 150px;
display: block;
height: 40px;
padding: 20px 0 0 0;
text-align: center;
font-size: 15px;
text-decoration: none;
color: #333333;
font-weight: bold;
outline: none;
}

VIEW.JSP
<%@page import="java.sql.*" %>
<% Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con =
DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe", "system",
"oracle");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("select * from loginpol");
%>
81

<%
while (rs.next()) {
{
out.print("<td>"+rs.getString(1)+"</td>");
out.print("<td>"+rs.getString(2)+"</td>");
out.print("<td>"+rs.getString(3)+"</td>");
out.print("<td>"+rs.getString(4)+"</td>");
out.print("<td>"+rs.getString(5)+"</td>");
out.print("<td>"+rs.getString(6)+"</td>");
out.print("<td>"+rs.getString(7)+"</td>");
out.print("<td>"+rs.getString(8)+"</td>");
}
}
%>

SCOPE

1.

Advanced technology- It is an advanced technology used now a days. It


increases the E knowledge of the users which is very necessary for
current generation.

2.

Internet: It is an online facility and hence very useful for the users.
Voters can vote from any where at any time in India.

82

3.

E-Mails:

ELECTION COMMISION OF INDIA can send the

error report to a particular user if he\she entered false information.

4.

E-SMS: People they have not internet connection they can not check
the emails or not have email they can be informed by SMS on their
mobile. Today many websites provide free SMS to the mobile.
ELECTION COMMISION OF INDIA can use these to send any
information
TESTING & DEBUGGING TECHNIQUES

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to
check the functionality of components, sub assemblies, assemblies and/or a finished
product It is the process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in
an unacceptable manner. There are various types of test. Each test type addresses a
specific testing requirement.

TYPES OF TESTS

Unit testing
Unit testing involves the design of test cases that validate that the internal
program logic is functioning properly, and that program inputs produce valid
outputs. All decision branches and internal code flow should be validated. It is the
83

testing of individual software units of the application .it is done after the
completion of an individual unit before integration. This is a structural testing, that
relies on knowledge of its

construction and is invasive. Unit tests perform basic tests at component level and
test a specific business process, application, and/or system configuration. Unit tests
ensure that each unique path of a business process performs accurately to the
documented specifications and contains clearly defined inputs and expected
results.

Integration testing
Integration tests are designed to test integrated software components to determine
if they actually run as one program. Testing is event driven and is more concerned
with the basic outcome of screens or fields. Integration tests demonstrate that
although the components were individually satisfaction, as shown by successfully
unit testing, the combination of components is correct and consistent. Integration
testing is specifically aimed at

exposing the problems that arise from the

combination of components.
Functional test
Functional tests provide systematic demonstrations that functions tested are
available as specified by the business and technical requirements, system
documentation, and user manuals.
Functional testing is centered on the following items:
Valid Input

: identified classes of valid input must be accepted.

84

Invalid Input

: identified classes of invalid input must be

rejected.

Functions

: identified functions must be exercised.

Output

: identified classes of application outputs must be exercised.

Systems/Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key


functions, or special test cases. In addition, systematic coverage pertaining to
identify Business process flows; data fields, predefined processes, and successive
processes must be considered for testing. Before functional testing is complete,
additional tests are identified and the effective value of current tests is determined.

System Test
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An
example of system testing is the configuration oriented system integration test.
System testing is based on process descriptions and flows, emphasizing pre-driven
process links and integration points.
White Box Testing
White Box Testing is a testing in which in which the software tester has knowledge
of the inner workings, structure and language of the software, or at least its
purpose. It is purpose. It is used to test areas that cannot be reached from a black
box level.
85

Black Box Testing


Black Box Testing is testing the software without any knowledge of the inner
workings, structure or language of the module being tested. Black box tests, as
most other kinds of tests, must be written from a definitive source document, such
as specification or requirements document, such as specification or requirements
document. It is a testing in which the software under test is treated, as a black
box .you cannot see into it. The test provides inputs and responds to outputs
without considering how the software works.

8.1. Unit Testing


Unit testing is usually conducted as part of a combined code and unit test phase of
the software lifecycle, although it is not uncommon for coding and unit testing to
be conducted as two distinct phases.

Test strategy and approach


Field testing will be performed manually and functional tests will be written
in detail.

Test objectives
All field entries must work properly.
Pages must be activated from the identified link.
The entry screen, messages and responses must not be delayed.

86

Features to be tested
Verify that the entries are of the correct format
No duplicate entries should be allowed
All links should take the user to the correct page.
8.2. Integration Testing
Software integration testing is the incremental integration testing of two or more
integrated software components on a single platform to produce failures caused by
interface defects.
The task of the integration test is to check that components or software
applications, e.g. components in a software system or one step up software
applications at the company level interact without error.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered.
8.3. Acceptance Testing
User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional
requirements.
Test Results: All the test cases mentioned above passed successfully. No defects
encountered.

87

MAINTENANCE
The maintenance of system is very simple but enhancement is required and to be
carried on.Enhancements to be carried out require inclusion of requirements that
have come up after the requirements were frozen. This includes some functionality
changes in the Examination procedure as well as including greater details about the
Examinee. The system is not a platform dependent complete project snapshot of
every function.

88

SCREENSHOTS

89

90

91

92

93

94

95

96

97

98

99

100

101

ADVANTAGES
1. Fast and easy service.
2. The online voting system provides a less time consuming .
3. It reduces the paper work and makes the work less tedious for ELESTION
COMMISION.
4. It is a better way for voting.
5. By this voting percentage will increase drastically.
6. Voter has no need to go to any polling booth ,so it is easy to use.

102

CONCLUSION
This Online Voting system will manage the Voters information by which voter can
login and use his voting rights. The system will incorporate all features of Voting
system. Its provide the tools for maintaining voters vote to every party and it
count total no. of votes of every party. There is a DATABASE which is maintained
by the ELECTION COMMISION OF INDIA in which all the names of voter with
complete information is stored.
In this user who is above 18 years register his/her information on the database
and when he/she want to vote he/she has to login by his id and password and can
vote to any party . Voting detail store in database and the result is displayed by
calculation. By online voting system percentage of voting is increases. It decreases
the cost and time of voting process. It is very easy to use and It is vary less time
consuming. It is very easy to debug.

BIBLIOGRAPHY, REFERENCES & WEBSITES

BIBLIOGRAPHY

Programming with java, Publication.


Software Engineering, Roger Pressmen, McGraw Hill
Data mining : Concept and Techniques by Han Kamber, Elsevier
Software Project Management by Bob Hughes & Mike Cotterell, TMH

103

REFERENCES

Dr.S.B.Yadav, MD
Dr.R.S.Yadav ,BHMS, Votting officer (EST Hospital, Modinagar)
Dr. Anurag Tyagi, R&D Medicines, Gatteffose India Pvt. Ltd
Mr. Ankur Saxena , Asst. Tester (Testing of Medicines)
Mr. Aditya Chatrath , Student(B.Pharma final year)

WEBSITES

http://www.java2s.com/tutorials
www.votting.com
www.Votting-software.org
www.human-anatony.net
www.innerbody.com

104

You might also like