Вы находитесь на странице: 1из 80

1.

1ABOUT ORGANIZATION

Organization Profile:
3Edge Solutions is an IT-industry sponsored initiative promoted by
professionals from the IT domain with a combined experience of over 125+ years. The
company specializes in corporate training in technology, industry methodologies and
practices, business communication and soft skills. Over the years, 3Edge has built
strong tie-ups with reputed organizations such as Scope International, Cognizant
Technology Solutions, Serving Global Solutions and Oracle.
With the knowledge bank of experienced professionals in IT consulting,
3Edge Solutions have developed and continue to work on many domestic and global
Software Development projects. In the past, 3Edge Solutions has developed web based
application like online Trading portals, electronic Shareholders Forum and a Workflow
accounting portal for an accounting firm. Some of the ongoing projects include online
pharmacy and Web based clinical trials for US based client. 3Edge is also involved in
developing pedagogical tools such as e-Learning, course-ware and question banks for
various corporate. 3Edge Solutions has developed industry based curriculum for an
Engineering University based in Washington, USA.
3Edge Solutions has been recognized as a “Knowledge Partner” to Govt. of
Andhra Pradesh for enhancing employ-ability in IT and ITES sectors in the state.
3Edge is also assisting ICT Academy of Tamil Nadu (ICTACT) to train faculty in all
Engineering Colleges of Tamil Nadu in industry-oriented curriculum.

1
1.2Existing System:
• Since the facility head is the chief controlling authority in the department, a
schedule is to be prepared for him and to be maintained permanently.

• The data is maintained manually where there is a possibility for loss of data.

• It is a very tedious process

1.3 Proposed System:


• This system is proposed for the work to be done in sophisticated
manner instead of investing their valuable time.

• Using this system the Admin can maintain up to date information


without taking the risk of maintaining in manually.

• This System will help the facility heads to perform their duties
effectively

2
2. REQUIREMENT

2.1 Hard ware Specification:

• Processor : Intel Pentium 4

• RAM : 512 MB RAM

• Hard Disk : 80 GB

• Monitor : Standard color monitor

2.2 Software Requirements

• Language : JAVA

• Database System : MY-SQL

• Operating System : Windows XP & latest Versions

2.3 Software Description

J2SE development kit overview:

There are two principal products in the Java SE platform family: Java SE Runtime

Environment (JRE) and Java Development Kit (JDK).

 Java Runtime Environment (JRE)

The Java Runtime Environment (JRE) provides the libraries, the Java Virtual
Machine, and other components to run applets and applications written in the Java
programming language. In addition, two key deployment technologies are part of
the JRE: Java Plug-in, which enables applets to run in popular browsers; and Java
Web Start, which deploys standalone applications over a network. It is also the
foundation for the technologies in the Java 2 Platform, Enterprise Edition (J2EE)
for enterprise software development and deployment. The JRE does not contain

3
tools and utilities such as compilers or debuggers for developing applets and
applications.

 Java Development Kit (JDK)

The JDK is a superset of the JRE, and contains everything that is in the JRE, plus
tools such as the compilers and debuggers necessity.

Java Server Pages (JSP):

Java Server Pages (JSP) technology provides a simplified, fast way to create web
pages that display dynamically-generated content. The JSP specification, developed
through an industry-wide initiative led by Sun Microsystems, defines the interaction
between the server and the JSP page, and describes the format and syntax of the page.

JSP’s have dynamic scripting capability that works in tandem with HTML code,
separating the page logic from the static elements -- the actual design and display of
the page -- to help make the HTML more functional(i.e. dynamic database queries).

Java Server Pages (JSP) technology enables us to rapidly develop and easily maintain,
information-rich, dynamic Web pages that leverage existing business systems. As part
of the Java technology family, JSP technology enables rapid development of Web-
based applications that are platform independent. JSP technology separates the user
interface from content generation, enabling designers to change the overall page
layout without altering the underlying dynamic content.
Benefits for Developers:
With a familiar background with HTML, we can:
 Use JSP technology without having to learn the Java language: You can use
JSP technology without learning how to write Java scriptlets. Although scriptlets are
no longer required to generate dynamic content, they are still supported to provide
backward compatibility.

 Extend the JSP language: Java tag library developers and designers can extend
the JSP language with "simple tag handlers," which utilize a new, much simpler and
cleaner, tag extension API. This spurs the growing number of pluggable, reusable tag
libraries available, which in turn reduces the amount of code needed to write powerful
Web applications.

4
 Easily write and maintain pages: The Java Server Pages Standard Tag Library
(JSTL) expression language is now integrated into JSP technology and has been
upgraded to support functions. The expression language can now be used instead of
scriptlet expressions.

Key Capabilities:
High Availability: Ensure business continuity with the highest levels of system
availability through technologies that protect your data against costly human errors
and minimize disaster recovery downtime.
Performance and Scalability: Deliver an infrastructure that can grow with your
business and has a proven record in handling today's large amounts of data and most
critical enterprise workloads.
Security: Provide a secure environment to address privacy and compliance
requirements with built-in features that protect your data against unauthorized access.
Manageability: Manage your infrastructure with automated diagnostics, tuning, and
configuration to reduce operational costs while reducing maintenance and easily
managing very large amounts of data.
Developer Productivity: Build and deploy critical business-ready applications more
quickly by improving developer productivity and reducing project life cycle times.

Tomcat server:
Apache Tomcat (formerly under the Apache Jakarta Project; Tomcat is now a top
level project) is a web container developed at the Apache Software Foundation.
Tomcat implements the servlet and the Java Server Pages (JSP) specifications from
Sun Microsystems, providing an environment for Java code to run in cooperation with
a web server. It adds tools for configuration and management but can also be
configured by editing configuration files that are normally XML-formatted. Because
Tomcat includes its own HTTP server internally, it is also considered a standalone
web server.

Environment:
Tomcat is a web server that supports servlets and JSPs. Tomcat comes with the Jasper
compiler that compiles JSPs into servlets.

5
The Tomcat servlet engine is often used in combination with an Apache web server
or other web servers. Tomcat can also function as an independent web server. Earlier
in its development, the perception existed that standalone Tomcat was only suitable
for development environments and other environments with minimal requirements for
speed and transaction handling. However, that perception no longer exists; Tomcat is
increasingly used as a standalone web server in high-traffic, high-availability
environments.

Since its developers wrote Tomcat in Java, it runs on any operating system that has a
JVM.

Features:

Tomcat 5.x (later versions)

 Implements the Servlet 2.4 and JSP 2.0 specifications

 Reduced garbage collection, improved performance and scalability

 Native Windows and UNIX wrappers for platform integration Faster JSP
parsing

6
Online Help Desk (OHD) for the facilities in the campus. This is an Intranet based
application that can be accessed throughout the campus. This system can be used to
automate the workflow of service requests for the various facilities in the campus.
The list of modules incorporated with “ONLINE HELP DESK FOR THE
FACILITIES IN THE CAMPUS” is

1. 1. Administrator Module: The administrator will first creates the members of


organization. The administrator will check the quires and then update the status
and assigns the query to their respective facility to solve it.

In this module Administrator will


 Creating user accounts:
The administrator will create the users of the organization which includes employees
and students. Each member in the organization were given username and password for
the login into their account. The username will be their email-id.
 Updating the status posted by employee:
The administrator will update the status of the query by giving the description of it
whether he is approving or rejecting the query with appropriate description
 Assigning the task:
The administrator In this the administrator will assign task to the employee(facility
members) with the specific description what action he has to be performed.
 Viewing the profiles of the students and employees:
The administrator will view all the details of the students and employees who are the
members of the organization.
 Authentication:
The administrator will provide a good authentication to the members of the
organization by providing the username and password to them and they are provided
with facility of changing their details like password, name etc this will provide a good
authentication to the members.
 Maintenance of data base:
The administrator will maintain the database so that there will be no problems while
the members of the organization are performing the quires.

7
2. End-User Module: The End-User module contains the members of
organization like employees and students.
In this module parent will
 Login:
The End-User is given a username and password by the administrator. The username
used is the Email-id and password is given by the administrator and later the users can
change the password and username if required.
 Create new request:
In this the Students and the employees will post the request regarding their queries by
selecting the corresponding facility type and writing the description about the query.
 View the status:
In this the Students and the employees will view the status that is updated by the
Administrator and they can know whether the admin has approved the request or
rejected the request.
 Access books and softwares:
The In this will Students and the employees can have a special access to the eBook
library and software’s so that they can download and view the corresponding books
and software’s.

3. Facility module: The facility module will contain the employees who are
assigned with the corresponding facility types.
 Login to system:
The facility members are just like the employees they are also registered by the
administrator and can login with the username and password given to them.

 View and perform task assigned by administrator:


According to the queries of the students and employees the admin will approve or
reject them .If he had approved then he has the action has to be performed so, the
admin will assign the required task to the facility members and when the facility
members will login to their account they can view the task assigned by the
administrator and they perform them accordingly.
 Update the status of student: The student will post the request to
the facility the status is updated by the corresponding employee or the facility.

8
Unified Modeling Language (UML)

It is a language to specifying, visualizing and constructing the artifacts of software


system as well as for business models. GRADY BOOCH, IVAR JACCOBSON and
JAMES RUMBUGH found it. The UML notation is useful for graphically depicting
Object Oriented Analysis and Object Oriented Design (OOA and OOD) modules.
The unified modeling language is a standard language for specifying,
Visualizing, Constructing and documenting the software system and its components. It
is a graphical language that provides a vocabulary and set of semantics and rules. The
UML focuses on the conceptual and physical representation of the system. It captures
the decisions and understandings about systems that must be constructed. It is used to
understand, design, configure, maintain and control information about the systems.
• Visualizing:
Through UML we see or visualize an existing system and ultimately
we visualize how the system is going to be after implementation. Unless we think
we cannot implement. UML helps to visualize how the components of the system
communicate and interact with each other.
• Specifying:
Specifying means building models that are precise, unambiguous and
complete UML addresses the specification of all the important Analysis Design,
Implementation decisions that must be made in developing and deploying a software
system.
• Constructing:
UML models can be directly connected to a variety of programming
language through mapping a model from UML to a programming language like Java or
C++ or VB.
Forward Engineering and Reverse Engineering is possible through UML.
• Documenting:
The deliverables of a project apart from coding are some artifacts
which are critical in controlling, measuring and communicating about a system during
its development viz. Requirements, Architecture, Design, Source code, Project plans,
Tests, Prototypes, Releases etc.

9
DIAGRAMS IN UML:
Diagrams are graphical presentation of set of elements. Diagrams project a
system, or
visualize a system from different angles and perspectives. The UML has nine
diagrams these
diagrams can be classified into the following groups:
1) Static or structural diagrams
2) Dynamic or behavioral diagrams

1) STATIC OR STRUCTURAL DIAGRAMS:

Class Diagram: This shows a set of classes, interfaces, collaborations and their
relationships. There are the most common diagrams in modeling the object oriented
systems and are used to give the static view of a system.

2) DYNAMIC OR BEHAVIORAL DIAGRAMS:

Use case Diagram: Shows a set of use cases and actors and their relationships. These
diagrams illustrate the static use case view of a system and are important in organizing
and modeling the behaviors of a system.

Sequence Diagram: Sequence diagram is an interaction diagram which focuses on the


time ordering of messages it shows a set of objects and messages exchange between
these objects. This diagram illustrates the dynamic view of a system.

Collaboration Diagram: This diagram is an interaction diagram that stresses or


emphasizes the structural organization of the objects that send and receive messages. It
shows a set of objects, links between objects and messages send and received by those
objects. There are used to illustrate the dynamic vies of a system.

10
4.1 Use case diagram

c r e a te u s e r s

lo g i n

v ie w r e q u e s ts

A d m in
u p d a te s ta t u s o f r e q u e s t o f e m p l o y e e

a s i g n t a s k to f a c i l i t y
s tu d e n ts

v i e w a l l p r o fi l e s

u p d a te t h e s ta tu s o f s tu d e n t
E m p l o ye e s

p o s t n e w re q u e s t

v i e w s t a tu s o f r e q u e s t

a c c e s b o o k s a n d s o ft w a r e s

v i e w t h e ta s k s a s s i g n e d b y a d m i n

11
4.2 Class Diagram

Administrator
user name : varchar
facilitates password : varchar

updates status()
assign tasks()
view profiles()

Employees
students
employee id : int
student id : int
name : varchar
name : varchar
address : varchar
address : varchar
email : varchar
facilitates dob : int
password : :varchar
gender : varchar
gender : varchar
email : varchar
role : varchar
password : varchar
post request()
post request()
view status()
view status()
access boks and s/ws() posts posts access books and s/ws()
view tasks assigned by admin()

request
request id : int
faculty type : varchar
description
status : varchar

post request()
upation of status of request()

12
4.3 Sequence Diagram of student:

login page ohd:system home


page:student

enter username and password

validation

display student page

post new request

view status

access books and softwares

logout

display ohd home page

13
4.4 Collaboration Diagram of student:

2: validation

login 1: enter username and password


page

4: post new request ohd:syst


8: display ohd status
5: view home page em
6: access books and softwares
7: logout

3: display student page


home
page:student

14
4.3.1 Sequence Diagram of Employee:

lo g in p a g e o h d :s ys te m hom e
p a g e :E m p l o ye e

e n te r u s e rn a m e a n d p a s s w o r d

va l id a ti o n

d is p la y E m p l o ye e p a g e

u p d a te s ta tu s fo r s tu d e n t r e q u e s t

p o s t n e w re q u e s t

vie w s ta tu s

a c c e s s b o o k s a n d s o ftw a r e s

vie w ta s k s a s s i g n e d b y a d m in

lo g o u t

d is p la y o h d h o m e p a g e

15
4.4.1 Collaboration Diagram of employee:

login
page
2: validation
1: enter username and password

10: display ohd home page


ohd:syst
4: update status for student request em
5: post new request
6: view status
7: access books and softwares
8: view tasks assigned by admin
9: logout

3: display Employee page

home
page:Employee

16
4.3.2 Sequence Diagram of Administrator:

login page ohd:system home


page:admin

enter username and password

validates

display admin page

create users

view requests

update status

assign task to facility

view all profiles

logout

display ohd home page

17
4.4.2 Collaboration Diagram of administrator:

login
page 2: validates
1: enter username and password

10: display ohd home


4: create userspage
5: view requests ohd:syst
6: update status em
7: assign task to facility
8: view all profiles
9: logout

3: display admin page

home
page:admin

18
4.5 State chart diagram for administrator:

start

logins

validation

register new users

view new requests

update the status of requests

assign task to facility

logout

19
4.5.1 State chart diagram for student:

start

login

view status of requests

post new request

access s/ws and books

logout

stop

20
4.5.2 State chart diagram for Employee:

start

login

validation

view request post by student

update status

post new request

view status

access softwares and books

logout

stop

21
5.6 E-R Diagram

22
4.7 Data Dictionary

Employee Table:

Table No: 1
Table Name Employee
Table description This table contains the employee details.
Attribute name Data types constraints Sample values
Employee id Int Primary key 1
Name varchar(50) Not-null siddartha
Address varchar(50) Not-null balasamudram
Email varchar(50) Not-null siddu@gmail.com
Password Varchar(50) Not-null siddu
Gender varchar(50) Not-null male
Role id int Not-null 1
contact varchar(50) Not-null 9491821187

Employee Request Table:

Table No: 2
Table Name Employee request
Table description This table contains the details of employee requests.
Attribute name Data types constraints Sample values
Employee req id Int Primary key 1
Employee id int Forigen key 1
Faculty type id int Not-null 1
description varchar(50) Not-null xyz
Request status id int Forigen key 1

Facility Table:

Table No: 3
Table Name Facility
Table description This tables contains the facility details
Attribute name Data types constraints Sample values
Facility id Int Primary key 1
Facility type id Int Foreign key 1
Incharge id Int Foreign key 1
description varchar(50) Not-null xyz

23
Facility Type Table:

Table No: 4
Table Name Facility type
Table description This table contains various facilities present in college.
Attribute name Data types constraints Sample values
Facility type id Int Primary key 1
name varchar(50) Not-null venkatesh
description varchar(50) Foreign key abcd

Request Status Table:

Table No: 5
Table Name Request status
Table description This table contains details of request.
Attribute name Data types constraints Sample values
request status id Int Primary key 1
name varchar(50) Not-null Siddartha.k
description varchar(50) Not-null bbhggt

Role Table:

Table No: 6
Table Name role
Table description This table contains the roles of various employees
Attribute name Data types constraints Sample values
Role id Int Primary key 1
name varchar(50) Not-null Siddartha.k
Description varchar(50) Not-null Maintain labs

24
Student Table:

Table No: 7
Table Name student
Table description This table contains the details of student.
Attribute name Data types constraints Sample values
Student id Int Primary key 1
name varchar(50) Not-null Siddartha.k
DOB varchar(50) Not-null 1/2/1990
DOJ varchar(50) Not-null 2/5/2007
email Varchar(50) Not-null sid@gmail.com
password varchar(50) Not-null sid
address varchar(50) Not-null hnk
gender varchar(50) Not-null male

Student Request Table:

Table No: 8
Table Name Student request
Table description This table contains the requests posted by student
Attribute name Data types constraints Sample values
Srudent request id Int Primary key 1
Student id Int Foreign key 1
Facility type id varchar(50) Foreign key 1
description varchar(50) Not-null I need exam time
table
Request status id Int Foreign key 1

25
Connection.java:

package com.connection;

import java.sql.*;

public class Crp_system {

public static Connection get_con() {

Connection c = null;

try {

Class.forName("com.mysql.jdbc.Driver");

c = DriverManager.getConnection("jdbc:mysql://localhost:3306/olhd", "root",
"root");

} catch (Exception e) {

System.out.println(e);

return c;

26
Registration.java

In the registration page ,the administrator will register the students and employees .He
will enter all the details of the students and employees they are stored into the
database.

EMPLOYEE REGISTRATION:
package com.registeration;

import com.connection.Crp_system;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author Rajesh
*/
public class Employee_registration extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Connection conn = Crp_system.get_con();
try {
String str = "insert into
employee(name,address,email,password,gender,role_id,contact) values(?,?,?,?,?,?,?)";

PreparedStatement ps = conn.prepareStatement(str);
ps.setString(1, request.getParameter("name"));
ps.setString(2, request.getParameter("address"));
ps.setString(3, request.getParameter("email"));
ps.setString(4, request.getParameter("password"));
ps.setString(5, request.getParameter("gender"));
ps.setString(6, request.getParameter("role_id"));

27
ps.setString(7, request.getParameter("contact"));
ps.executeUpdate();
conn.close();

response.sendRedirect("success.jsp");
} catch (SQLException e) {
e.printStackTrace();
}
}
}

STUDENT REGISTRATION:
package com.registeration;

import com.connection.Crp_system;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author Rajesh
*/
public class Student_registration extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Connection conn = Crp_system.get_con();
try {
String str = "insert into student(name,dob,doj,email,password,address,gender)
values(?,?,?,?,?,?,?)";

PreparedStatement ps = conn.prepareStatement(str);
ps.setString(1, request.getParameter("name"));

28
ps.setString(2, request.getParameter("dob"));
ps.setString(3, request.getParameter("doj"));
ps.setString(4, request.getParameter("email"));
ps.setString(5, request.getParameter("password"));
ps.setString(6, request.getParameter("address"));
ps.setString(7, request.getParameter("gender"));
ps.executeUpdate();
conn.close();

response.sendRedirect("success.jsp");
} catch (SQLException e) {
e.printStackTrace();
}
}
}

29
Postquery.java:

package com.registeration;

import com.connection.Crp_system;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author Rajesh
*/
public class Student_registration extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Connection conn = Crp_system.get_con();
try {
String str = "insert into student(name,dob,doj,email,password,address,gender)
values(?,?,?,?,?,?,?)";

PreparedStatement ps = conn.prepareStatement(str);
ps.setString(1, request.getParameter("name"));
ps.setString(2, request.getParameter("dob"));
ps.setString(3, request.getParameter("doj"));
ps.setString(4, request.getParameter("email"));
ps.setString(5, request.getParameter("password"));
ps.setString(6, request.getParameter("address"));
ps.setString(7, request.getParameter("gender"));
ps.executeUpdate();
conn.close();

30
response.sendRedirect("success.jsp");
} catch (SQLException e) {
e.printStackTrace();
}
}
}

31
Replyquery.java:
package com.replyquery;

import com.Viewstatus.PostStatusbean;
import com.connection.Crp_system;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.ResultSet;
import java.util.ArrayList;
import javax.print.DocFlavor.STRING;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
*
* @author admin
*/
public class ReplyQuery extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse
response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
Statement st;
ArrayList statuspost = new ArrayList();
HttpSession session = request.getSession();
try {
Connection conn = (Connection) Crp_system.get_con();
String query = "select
sr.student_request_id,s.name,sr.description,ft.name,r.name,sr.request_status_id,"
+ "sr.student_id,f.incharge_id,r.name from student_request sr,"
+ "facility f,facility_type ft,requeststatus r,student s where "
+ "sr.facility_type_id=f.facility_type_id and "
+ "ft.facility_type_id=f.facility_type_id and "
+ "sr.request_status_id=r.requeststatus_ID and "
+ "s.studentid=sr.student_id and "

32
+ "r.requeststatus_ID=1 and "
+ "f.incharge_id='" + (String) session.getAttribute("posterid") + "'";
st = (Statement) conn.createStatement();
ResultSet rs = st.executeQuery(query);
while (rs.next()) {
PostStatusbean fac = new PostStatusbean();
// fac
fac.setStudent_request_id(rs.getInt(1));
fac.setStudentname(rs.getString(2));
fac.setDescription(rs.getString(3));
fac.setFaclity_type(rs.getString(4));
fac.setStatus(rs.getString(5));

statuspost.add(fac);

session.setAttribute("statuspost", statuspost);
response.sendRedirect("query.jsp");

conn.close();
st.close();
rs.close();
} catch (Exception e) {
e.printStackTrace();
} finally {
out.close();
}

// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the +


sign on the left to edit the code.">
/**
* Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}

/**
* Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response

33
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}

/**
* Returns a short description of the servlet.
* @return a String containing servlet description
*/
@Override
public String getServletInfo() {
return "Short description";
}// </editor-fold>
}

34
Taskassign.java:
package com.facility;

import com.connection.Crp_system;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
*
* @author Rajesh
*/
public class Taskassign extends HttpServlet {
/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
Connection conn = Crp_system.get_con();
try {
String str = "insert into facility(facility_type_id,incharge_id,description)
values(?,?,?)";
PreparedStatement ps = conn.prepareStatement(str);
ps.setString(1, request.getParameter("facility_type_id"));
ps.setString(2, request.getParameter("employee_id"));
ps.setString(3, request.getParameter("description"));

ps.executeUpdate();
conn.close();

response.sendRedirect("Tasksuccess.jsp");
} catch (SQLException e) {
e.printStackTrace();
}
}
}

35
Logincontroller.java:
package com.login;

import com.connection.Crp_system;
import java.sql.Connection;
import java.sql.ResultSet;

import java.io.IOException;
import java.io.PrintWriter;
import java.sql.PreparedStatement;
import java.sql.Statement;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
*
* @author admin
*/
public class LoginController extends HttpServlet {

/**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out = response.getWriter();

String username = request.getParameter("username");


String password = request.getParameter("password");
String role_id = request.getParameter("role_id");
HttpSession session = request.getSession(true);

if (role_id.equalsIgnoreCase("1")) {

if (username.equalsIgnoreCase("Admin") &&
password.equalsIgnoreCase("Admin")
&& role_id.equalsIgnoreCase("1")) {

response.sendRedirect("adminhome.jsp");
}

36
} else if (role_id.equalsIgnoreCase("2")) {

PreparedStatement st;
try {
Connection conn = Crp_system.get_con();

st = conn.prepareStatement("select name, employee_id, role_id "


+ "from employee where email=? and password=?");

st.setString(1, username);
st.setString(2, password);
ResultSet rs = st.executeQuery();

if (rs.next()) {
System.out.println("##################################12");

String name = rs.getString(1);


String studentid = rs.getString(2);
String roleid = rs.getString(3);
session.setAttribute("roleid", roleid);
session.setAttribute("posterid", studentid);
response.sendRedirect("employee_home.jsp");

}
conn.close();
st.close();
rs.close();
} catch (Exception e) {
e.printStackTrace(out);
}
} else if (role_id.equalsIgnoreCase("3")) {

Statement st;
try {
Connection conn = Crp_system.get_con();
String query = "select name,studentid from student where email='" +
username + "' and password='" + password + "'";
st = (Statement) conn.createStatement();
ResultSet rs = st.executeQuery(query);
if (rs.next()) {
String name = rs.getString(1);
String studentid = rs.getString(2);
session.setAttribute("roleid", "3");
session.setAttribute("posterid", studentid);
response.sendRedirect("user_home.jsp");
}

conn.close();
st.close();
rs.close();

37
} catch (Exception e) {
e.printStackTrace();
}

}
}
}

38
Viewstatus.jsp

<%@page import="java.util.Iterator"%>
<%@page import="com.Viewstatus.PostStatusbean"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<link rel="shortcut icon" type="image/gif" href="images/tab_icon.gif">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript"></script>
</head>
<body onload="show_date_and_time();">
<div id="main">
<div id="header_container">
<div id="header"><a href="index.html"><img
src="images/logo.gif" alt="Customer Request Peocessing"
border="0" />
</a>
<ul>

<li><a href="facility_incharge">Task Assign</a></li>


<li><a href="Employeeview">Employee~</a></li>
<li><a href="StudentDetails">Student~</a></li>
<li><a href="adminview">Reply Query</a></li>
<li class="contact"><a href="logout.jsp">Log Out</a></li>
</ul>
<h1></h1>
<h3>Hi! </h3>
</div>
</div>
<div id="bottomPan">
<div id="bottomMainPan">
<h3>

<form name="AdminApprove" action="AdminApprove"


method="post">
<table width="100%" height="100%" border="2" align="center">

<tr bgcolor="#254117">
<th style="color: white;">
SELECT
</th>

39
<th style="color: white;">
Employee Name
</th>
<th style="color: white;">
Description
</th>
<th style="color: white;">
Facility Type
</th>
<th style="color: white;">
Status
</th>

</tr>
<%
ArrayList<PostStatusbean> al = (ArrayList)
session.getAttribute("statuspost");
Iterator<PostStatusbean> i = al.iterator();
while (i.hasNext()) {
PostStatusbean sdb = i.next();
%>
<tr>

<td>
<input type="radio" value="<%=sdb.getStudent_request_id()
%>"
name="studentrequestid"/></td>

<td>
<b><%=sdb.getStudentname()%></b>
</td>
<td>
<b><%=sdb.getDescription()%></b>
</td>
<td>
<b><%=sdb.getFaclity_type()%></b>
</td>

<td>
<b><%=sdb.getStatus()%></b>
</td>

</tr>

<%
}
%>

</table>
<input type="submit" value="Select" name="status">

40
</form>

</h3>
</div>
</div>
<div id="footermainPan">
<div id="footerPan">
<div id="footerlogoPan"><a href="index.html"><img
src="images/footerlogo.gif" title="Total Management"
alt="Total Management" width="290" height="36" border="0"
/></a></div>
<ul>
<li><a href="user_home.jsp">Home</a>|</li>
<li><a href="#">Register</a> |</li>
<li><a href="#">Forum</a>|</li>
<li><a href="#">Comments</a> |</li>
<li><a href="aboutus.jsp">About Us</a></li>
</ul>
<ul class="templateworld">
<li>Designed by :</li>
<li><a href="" target="_blank">Siddartha</a></li>
</ul>
</div>
</div>
<img alt="clock" src="images/clock.png" class="clock"> <label
class="time" id="time"></label> <label class="date" id="date"></label>
<script type="text/javascript" src="show_date_time.js"></script></div>
</body>
</html>

41
Homepage.jsp:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
session = request.getSession(true);
session.invalidate();
request.getSession(true);
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma", "no-cache");
%>
<html>
<link rel="shortcut icon" type="image/gif" href="images/tab_icon.gif">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ONLINE HELP DESK</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="get_xml_object.js"
language="javascript"></script>

</head>
<body onload="show_date_and_time();">

<div id="main">
<div id="header_container">
<div id="header"><a href="index.html"><img
src="images/logo.gif" alt="Total Management" border="0" /></a>
<ul>
<li><a href="default.jsp">Home</a></li>
<li><a href="aboutus.jsp">About us</a></li>
</ul>
<h1></h1>
</div>
</div>

<div id="body1">
<form method="post" name="login" action="LoginController">

<label class="ul">Email Id:</label> <input name="username" type="text"


id="username"/>
<input name="password" type="password" id="pwd" value="" />
<select name="role_id">
<option value=""><---Role---></option>
<option value="2">Employee</option>
<option value="3">Students</option>
<option value="1">Admin</option>

42
</select>
<input name="go" type="submit" class="botton" value="Login"/>

</form>
</div>
<center><label id="label1"></label></center>
<div id="bottomPan">
<div id="bottomMainPan">
<h2>About Online Help Desk ?</h2>
<p>This system can be used to automate the workflow of service requests
for the various facilities in the campus. This is one integrated system that covers
different kinds of facilities like class-rooms, labs, computer center, faculty club
etc.</p>

</div>
</div>
<div id="footermainPan">
<div id="footerPan">
<div id="footerlogoPan"><a href="index.html"><img
src="images/footerlogo.gif" title="Total Management"
alt="Total Management" width="290" height="36" border="0"
/></a></div>
<ul>
<li><a href="#">Home</a>|</li>
<li><a href="#">Forum</a>|</li>
<li><a href="#">Comments</a> |</li>
<li><a href="aboutus.jsp">About Us</a></li>
</ul>
<ul class="templateworld">
<li>Designed by :</li>
<li><a href="http://www.technogeecs.blogspot.com"
target="_blank">Siddartha.K</a></li>
</ul>
</div>
</div>
<img alt="clock" src="images/clock.png" class="clock">
<label class="time" id="time"></label>
<label class="date" id="date"></label>
<script type="text/javascript" src="show_date_time.js"></script>
</div>
</body>
</html>

43
6.1 Testing :
Testing is the process of detecting errors. Testing performs a very critical role for
quality assurance and for ensuring the reliability of software. The results of testing are used
later on during maintenance also.

6.2 Types of Testing

• Unit Testing

6.2.1 Unit Testing

Unit testing focuses verification effort on the smallest unit of software i.e. the
module. Using the detailed design and the process specifications testing is done to
uncover errors within the boundary of the module. All modules must be successful in
the unit test before the start of the integration testing begins.

In this project each service can be thought of a module. There are so many
modules like Login, Admin module, customer module, Normal User,. Giving different
sets of inputs has tested each module. When developing the module as well as
finishing the development so that each module works without any error. The inputs are
validated when accepting from the user.

In this application developer tests the programs up as system. Software units in


a system are the modules and routines that are assembled and integrated to form a
specific function. Unit testing is first done on modules, independent of one another to
locate errors. This enables to detect errors. Through this error resulting from
interaction between modules initially avoided.

6.3 Integration Testing

After the unit testing we have to perform integration testing. The goal here is to
see if modules can be integrated properly, the emphasis being on testing interfaces
between modules. This testing activity can be considered as testing the design and
hence the emphasis on testing module interactions.

In this project integrating all the modules forms the main system. When
integrating all the modules I have checked whether the integration effects working of
any of the services by giving different combinations of inputs with which the two
services run perfectly before Integration.

44
6.4 Acceptance Testing

Acceptance Test is performed with realistic data of the client to demonstrate


that the software is working satisfactorily. Testing here is focused on external
behavior of the system; the internal logic of program is not emphasized.

In this project ‘Network Management Of Database System’ I have collected


some data and tested whether project is working correctly or not.

Test cases should be selected so that the largest number of attributes of an


equivalence class is exercised at once. The testing phase is an important part of
software development. It is the process of finding errors and missing operations and
also a complete verification to determine whether the objectives are met and the user
requirements are satisfied.

45
ACCEPTANCE TESTING:

S.NO Test Case Test Procedure Pre Expected Output Specification


Name Condition Result (Result) Document
1 Registration Enter all the Admin Home Message Success Registration
Form1 details of the page Registered Validation
registration forms Successfully

22 2 Registration Enter some fields Admin Home Enter the Success Registration
Form2 of registration Page specific field Validation
form (validation
error)

3 Login Form1 Enter valid User Home Page Display the Success Login form1
name, password respective Validation
home pages
4 Login Form2 Enter invalid Home Page Blank screen Success Login form2
User name, Validation
password
5 Post new Select facility End-user Display Success Post query
query type, description home page posted Validation
successfully
message
6 View status Click on “view End-user Display all the Success View status
status” home page status of Validation
requests
7 Access data Click on eBook End-user Display all e Success Access data
and software’s home page books & s/ws Validation
for download
8 Update status Enter the Admin Home Display Success Update status
description and page updated Validation
update the status sucessfully
9 Assign task Enter facility Admin Home Display Success Assign task
type, name and page assigned Validation
description sucessfully
10 View Click on “view End-user Display all the Success View
registered employee” and home page registered registered
members “view students” members members
Validation

46
TESTING SCREENS

47
Entering Registration of Employee into Database:

The administrator will register the employee details into the OHD database.
After entering the values into the database we get a message updation successful .

48
49
Entering Registration of Employee into Database:

The administrator will register the employee details into the OHD
database. after entering the values into the database we get a message updation
successful.

50
51
APROOVING OR REJECTINGTHE REQUEST:

In this the administrator will update the status of the query by giving
the description of it whether he is approving or rejecting the query with appropriate
description.

52
VIEWING THE STUDENT DETAILS:

In this the Admin can view the details of the students and employees registered
in the OHD

53
STUDENT POST QUERIES PAGE:

In this the Students and the employees will post the request regarding their
queries by selecting the corresponding facility type and writing the description about
the query.

54
55
HOME PAGE:

This is the home page of online help desk.

56
ABOUT US PAGE:

This is the About us page of Online Help Desk. All the viewers can know about
the organization.

57
LOGIN PAGE:

This is the login page of the Online help Desk .Here all the users like
employees , students and admin can login into their account.

58
ADMIN HOME PAGE:

This is the Admin home page where he can Assign task, Registers users and
reply to the query.

59
ASSIGNING TASK TO EMPLOYEE:

Here the Admin will assign task to the employees by specifying the facility
type and employee name and tell them about what action to be performed.

60
SUCESSFULLY ASSIGNED TASK:

Here after assigning we get the message successfully assigned

61
VEWING THE POSTED QUERY BY EMPLOYEE AND STUDENTS:

Here the admin will view the queries or request that are sent by the employees .

62
APROOVING OR REJECTINGTHE REQUEST:

Here admin will give reply to the requests along with the description whether to
approve or reject the request.

63
VIEWING THE STUDENT DETAILS:

Here admin can view all the student details and the people who are registered.

64
VIEWING EMPLOYEE DETAILS:

Here admin can view all the employee details who are registered into the
Online help Desk.

65
EMPLOYEE REGISTRATION PAGE:

Here is the registration page of the employee the admin will register the
employees emailed specifying their username.

66
REGISTRATION PAGE OF STUDENT:

Here is the registration page of the Students the admin will register the
employees emailed specifying their username.

67
EMPLOYEE HOME PAGE:

This is an employee home page where he can post the request ,reply to the
queries posted by students, access software’s etc..

68
EMPLOYEE QUERY STATUS PAGE:

This is the employee status page ,he can view the status of the requests he has
posted.

69
EMPLOYEE POST QUERIES PAGE:

This is the employee request page ,where he can post the request to the admin
if there are any queries.

70
SUCESSFULLY QUERY POSTED:

After posting he will receive this message.

71
EMPLOYEE REPLY QUERY PAGE:

This is the employee reply query page where the students post the request and
the employee will approve or reject the request.

72
EMPLOYEE CHANGE PASSWORD PAGE:

Here the employee can change the password and update the new email id and
mobile number.

73
STUDENT HOME PAGE:

This is the student home page where students can post the request and view the
status.

74
STUDENT QUERY STATUS PAGE:

This is the status page of the student where he can view whether the request is
approved or rejected by the employee.

75
STUDENT POST QUERIES PAGE:

Here the students can post the query to the employees.

76
SUCESSFULLY QUERY POSTED:

After pressing the post we can see the message posted successfully.

77
STUDENT CHANGE PASSWORD PAGE:

Here the employee can change the password and update the new email id and
mobile number.

78
8. Conclusion:

Therefore we are able to successfully reach the targets and goals of the
project.
 This project provides an excellent support for the users in order to provide all
the members of organization directly interacting with the person in the
organization.
 The Administrator is the whole controller of the project he can update
everything in the project.
 To the extent that it overcomes the loopholes of manual system and achieve the
benefits of the computerized system.
 Here after deploying this application there is no need of wasting time to gather
the relevant and required information manually.
So we, conclude that our project Online Help Desk, will be found
to be most useful and also we expect a better vision for a campus in near future.

Future Scope:
The scope of the project work is not limited to developing a web server
and providing services to the client but also can be extended to
More Security: by continuing to establish a firewall at the server, protecting the client
systems from access to unauthorized or virus probed sites.
It can be enhanced to include uploading a file giving message.
It can be enhanced to include give common alerts to group of people.

79
REFERENCES

1. SOFTWARE ENGINEERING - By Roger .S. Pressman

2. SQL FOR PROFESSIONALS - By Jain

3. JAVA2 THE COMPLETE REFERENCE - By Herbert schmidt

WEBSITES

1. www.support.microsoft.com

2. www.java.sun.com

3. www.w3schools.com

4. www.freetutes.com

80

Вам также может понравиться