Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Group Members:
• MAYANK RAJ
BENGAL COLLEGE OF ENGINEERING AND TECHNOLOGY
12500216072
• ANURAG KUMAR
BENGAL COLEGE OF ENGINEERING AND TECHNOLOGY
12500216106
• NITYA NARAYAN MAHATO
BENGAL COLEGE OF ENGINEERING AND TECHNOLOGY
12500216064
Table of Contents:
Acknowledgement................................................ 4
Project Objective .................................................. 5
Project Scope ........................................................ 6
Requirement
Specifications........................................................ 7
Database Design ................................................... 8
Application Work Flow ......................................... 9
Screenshots ......................................................... 10
Future Scope of Improvements........................... 11
Code..................................................................... 15
Certificate ........................................................... 21
Acknowledgement :
MAYANK RAJ
ANURAG KUMAR
NITYA NARAYAN MAHATO
Project Objective :
The main aim of the project is to give the basic idea of WEB
APPLICATION DEVELOPMENT using JEE for the purpose of having
an idea of JEE which is widely accepted platform for Enterprise
Software Development.One of the unique feature of
JEE,providing infrastructural service for Enterprise
GradeSoftware,makes it a natural choice for Enterprise Software
Development. JEE is built based on open standard
philosophy,which enables easy integration of external
framework like spring,hibernate etc. making JEE more relevant
for industry.
Project Scope :
CLIENT SIDE:-
Operating System for Client (Any One): - Windiows 10 / Windows 8.1 or 8 / Linux
any version / Mac etc.
Browser (Any One) :-Google Chrome, Microsoft Edge, Mozilla Firefox 40.0
SERVER SIDE:-
Operating System for Server (Any One): - Windows Server or Red hat or Fedora
Linux Server etc
Login table
S no. name Data type length
1 username varchar 50
2 password varchar 50
Database Design:
EMAI PH.N PASS PASS
L O
NAM UID
E
1
USER N MANAG
E ADMIN
1
1
1 1
GIVE MAN.
VIE
S QUES
W EXA .
M
N
SUBJEC
RESULT SUBJEC
N N T
T
TYP
N UID QID
QUESTIONS
MARK
SUB TYPE
S
QID1
QID2
QID3
VIEW
Application Work Flow:
USER ADMIN
REGISTRATION LOGIN
LOGIN ADD/DELETE
QUESTIONS
CHOOSES VIEW/DELETE
SUBJECT USERS
LOGOUT
Screenshots:
Future Scope of Improvements:
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.proj.dao.UserDAOLogic;
import com.proj.model.UserDetailsInfo;
@WebServlet("/UserRegistrationServlet")
public class UserRegistrationServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public UserRegistrationServlet() {
super();
}
Adminlogin Servlet:
package com.proj.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@WebServlet("/AdminLoginServlet")
public class AdminLoginServlet extends HttpServlet {
private static final long serialVersionUID = 1L;
public AdminLoginServlet() {
super();
}
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException{
}
else
{
System.out.println("INVALID");
User Registration:
<%@ page language="java" contentType="text/html;
charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:include page="BeforeLoginMenu.html"></jsp:include>
<br/>
<div align="center">
<h1>USER REGISTRATION</h1>
<h2>
<div style="color: red; font-weight: bold;">
<%
if(request.getAttribute("regconfirmmsg") != null)
{
out.print(request.getAttribute("regconfirmmsg"));
}
%>
</div>
<tr>
<td> <label for="useremail">EMAIL ID: </label>
</td>
<td> <input type="email" name="useremail"
required /> </td>
</tr>
<tr>
<td> <label for="usermobileno">MOBILE NO:
</label> </td>
<td> <input type="tel" name="usermobile" required
/> </td>
</tr>
<tr>
<td> <label for="userpassword">PASSWORD: </label>
</td>
<td> <input type="password" name="userpassword"
required /></td>
</tr>
<tr>
<td align="right"> <input type="submit"
value="REGISTER"> </td>
<td> <input type="reset" value="CLEAR"> </td>
</tr>
</table>
</form>
</div>
</h2>
</body>
</html>
Adminlogin:
<tr>
<td> <label for="adminpassword">ADMIN PASSWORD:
</label> </td>
<td> <input type="password" name="adminpassword"
placeholder="ADMIN PASSWORD"/></td>
</tr>
<tr>
<td align="right"> <input type="submit"
value="LOGIN"> </td>
<td> <input type="reset" value="CLEAR"> </td>
</tr>
</table>
</form>
</div>
</h2>
</body>
</html>
UserDAOLogic:
package com.proj.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import com.proj.model.UserDetailsInfo;
int i = pst.executeUpdate();
if(i > 0)
f = true;
return f;
}
try
{
PreparedStatement pst = con.prepareStatement
("select * from userdetailsinfo where useremail =? and userpassword = ?");
pst.setString(1, userid);
pst.setString(2, password);
rs = pst.executeQuery();
if(rs.next())
f = true;
return f;
}
}
Certificate :
------------------------------------------------------
Mr. Chandan Mukherjee
Globsyn Finishing School
(a division of Globsyn Skills)
Certificate :
------------------------------------------------------
Mr. Chandan Mukherjee
Globsyn Finishing School
(a division of Globsyn Skills)
Certificate :
------------------------------------------------------
Mr. Chandan Mukherjee
Globsyn Finishing School
(a division of Globsyn Skills)