VoteIn is an election management web application where voting will be handled by an admin who will add
candidates for election. To vote for their favorite leaders, users need to register. Once signed up,
the user will be able to cast a vote for their favorite leader.
https://buildcode.org/projects/completed/VoteIn
Admin
- User(voters) Management
- Candidate(Leaders) Management
- Election Result
Voters
- Registration
- Voting
VoteIn application will be handled by one admin so it's important to understand the admin module before voting.
Every user either voters or candidates will have to first register as voters, now the admin is the one who is
responsible for adding the user to candidate list.
Example:
Name: Rahul Gandhi
Adhar number:...
now Rahul Gandhi wants to become the candidate for the election then admin will add Rahul Gandhi to the Candidate list.
Admin Privileges:-
- User(voters) Management 1.) Show Users 2.) Remove Users 3.) Update Users
- Candidate Management 1.) Add Candidate 2.) Update Candidate Details 3.) Remove the Candidate 4.) Show the Candidate
- Election Result
To vote, voters must first register using their adhar number. Users (voters) will be redirected to the login page after
registering, and once they log in, they will be directed to the voting page where all candidates in the same city as the
user (voter) will be displayed, so now the user can vote for anyone.
____________________________
registeration.html
registration form
Register button
_____________________________
|
|
|
call the addUser() function
of registeration.js
|
|
\ /
_______________________________
registeration.js
addUser() Functions
______________________________
|
|
|
make post request to
RegistrationControllerServlet
|
|
\ /
___________________________________________________
RegistrationControllerServlet.java
1.) fetch the form data
2.) checks the user in
database
a.) if a user is not present
in database then
register
b.) if user is already
present then response
user is already
registered
__________________________________________________
|
|
RegistrationControllerServlet call
registerUser() Functions of register the
user
|
|
\ /
___________________________
RegistrationDAO.java
registerUser()
Functions register
user
___________________________
|
|
register user sends the response to the
RegistrationControllerServlet and
RegistrationControllerServlet forward
the request for the registration response.jsp
to generate response
|
|
\ /
finally registrationresponse.jsp
send the response to the client
Pawan Kumar Mehta - arowpk@gmail.com
Project Link: https://github.com/pawanpk87/VoteIn