8/10/2019 Project Report on Expert Support System
1/72
INTRODUCTION TO COMPANY
Hewlett-Packard Companyor HP(styled as hp) is an Americanmultinationalinformation
technology corporation headquartered inPalo Alto,California,United States.It provides hardware,
software and services to consumers, small- and medium-sized businesses (SMBs) and large
enterprises, including customers in the government, health and education sectors.
The company was founded in aone-car garage in Palo Alto byWilliam "Bill" Redington
Hewlett andDavid "Dave" Packard, starting with a line of electronic test equipment. HP is the
world's leading PC manufacturer and has been since 2007, fending off a challenge by Chinese
manufacturerLenovo, according to Gartner.[2]It specializes in developing and manufacturing
computing, data storage, and networking hardware, designing software and delivering services.
Major product lines include personal computing devices, enterprise and industry standard servers,
related storage devices, networking products, software and a diverse range of printers and other
imaging products. HP markets its products to households, small- to medium-sized businesses and
enterprises directly as well as via online distribution, consumer-electronics and office-supply
retailers, software partners and major technology vendors. HP also has services and consulting
business around its products and partner products. In 2013 it was theworld's second-largest PC
vendorby unit sales.[3]
HP's global operations are directed from its headquarters inPalo Alto, California,USA. Its U.S.
operations are directed from its facility Harris County, Texas, nearHouston. Its Latin America
offices in unincorporatedMiami-Dade County, Florida, U.S., near Miami and inMedelln,
Colombia. Its Europe offices are inMeyrin,Switzerland, nearGeneva,but it has also a research
center in theParis-Saclaycluster,20 km in the south of Paris, France. Its Asia-Pacific offices are
inSingapore.[68][69][70][71][70][72][73]
It also has large operations inAustin, Texas,Boise, Idaho;Roseville, California;Fort Collins,
Colorado; Vancouver, Washington; San Diego; Tulsa, Oklahoma; andPlano, Texas (the former
headquarters ofEDS, which HP acquired). In the UK, HP is based at a large site inBracknell,
Berkshire with offices in various UK locations, including a landmark office tower in London, 88
Wood Street. Its recent acquisition of3Com will expand its employee base toMarlborough,
http://en.wikipedia.org/wiki/Multinational_corporationhttp://en.wikipedia.org/wiki/Information_technologyhttp://en.wikipedia.org/wiki/Information_technologyhttp://en.wikipedia.org/wiki/Palo_Alto,_Californiahttp://en.wikipedia.org/wiki/Californiahttp://en.wikipedia.org/wiki/United_Stateshttp://en.wikipedia.org/wiki/Small_and_medium_enterprisehttp://en.wikipedia.org/wiki/HP_Garagehttp://en.wikipedia.org/wiki/William_Redington_Hewletthttp://en.wikipedia.org/wiki/William_Redington_Hewletthttp://en.wikipedia.org/wiki/David_Packardhttp://en.wikipedia.org/wiki/Lenovohttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2http://en.wikipedia.org/wiki/Market_share_of_personal_computer_vendorshttp://en.wikipedia.org/wiki/Market_share_of_personal_computer_vendorshttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2013_PC-3http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2013_PC-3http://en.wikipedia.org/wiki/Palo_Alto,_Californiahttp://en.wikipedia.org/wiki/Harris_County,_Texashttp://en.wikipedia.org/wiki/Houstonhttp://en.wikipedia.org/wiki/Miami-Dade_County,_Floridahttp://en.wikipedia.org/wiki/Miamihttp://en.wikipedia.org/wiki/Medell%C3%ADnhttp://en.wikipedia.org/wiki/Meyrinhttp://en.wikipedia.org/wiki/Genevahttp://en.wikipedia.org/wiki/Paris-Saclayhttp://en.wikipedia.org/wiki/Business_clusterhttp://en.wikipedia.org/wiki/Singaporehttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-68http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-68http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-welcome.hp.com-70http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-73http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-73http://en.wikipedia.org/wiki/Austin,_Texashttp://en.wikipedia.org/wiki/Boise,_Idahohttp://en.wikipedia.org/wiki/Roseville,_Californiahttp://en.wikipedia.org/wiki/Fort_Collins,_Coloradohttp://en.wikipedia.org/wiki/Fort_Collins,_Coloradohttp://en.wikipedia.org/wiki/Plano,_Texashttp://en.wikipedia.org/wiki/HP_Enterprise_Serviceshttp://en.wikipedia.org/wiki/Bracknell,_Berkshirehttp://en.wikipedia.org/wiki/Bracknell,_Berkshirehttp://en.wikipedia.org/wiki/88_Wood_Streethttp://en.wikipedia.org/wiki/88_Wood_Streethttp://en.wikipedia.org/wiki/3Comhttp://en.wikipedia.org/wiki/Marlborough,_Massachusettshttp://en.wikipedia.org/wiki/Marlborough,_Massachusettshttp://en.wikipedia.org/wiki/3Comhttp://en.wikipedia.org/wiki/88_Wood_Streethttp://en.wikipedia.org/wiki/88_Wood_Streethttp://en.wikipedia.org/wiki/Bracknell,_Berkshirehttp://en.wikipedia.org/wiki/Bracknell,_Berkshirehttp://en.wikipedia.org/wiki/HP_Enterprise_Serviceshttp://en.wikipedia.org/wiki/Plano,_Texashttp://en.wikipedia.org/wiki/Fort_Collins,_Coloradohttp://en.wikipedia.org/wiki/Fort_Collins,_Coloradohttp://en.wikipedia.org/wiki/Roseville,_Californiahttp://en.wikipedia.org/wiki/Boise,_Idahohttp://en.wikipedia.org/wiki/Austin,_Texashttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-73http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-welcome.hp.com-70http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-welcome.hp.com-70http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-welcome.hp.com-70http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-welcome.hp.com-70http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-68http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-68http://en.wikipedia.org/wiki/Singaporehttp://en.wikipedia.org/wiki/Business_clusterhttp://en.wikipedia.org/wiki/Paris-Saclayhttp://en.wikipedia.org/wiki/Genevahttp://en.wikipedia.org/wiki/Meyrinhttp://en.wikipedia.org/wiki/Medell%C3%ADnhttp://en.wikipedia.org/wiki/Miamihttp://en.wikipedia.org/wiki/Miami-Dade_County,_Floridahttp://en.wikipedia.org/wiki/Houstonhttp://en.wikipedia.org/wiki/Harris_County,_Texashttp://en.wikipedia.org/wiki/Palo_Alto,_Californiahttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2013_PC-3http://en.wikipedia.org/wiki/Market_share_of_personal_computer_vendorshttp://en.wikipedia.org/wiki/Market_share_of_personal_computer_vendorshttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-2http://en.wikipedia.org/wiki/Lenovohttp://en.wikipedia.org/wiki/David_Packardhttp://en.wikipedia.org/wiki/William_Redington_Hewletthttp://en.wikipedia.org/wiki/William_Redington_Hewletthttp://en.wikipedia.org/wiki/HP_Garagehttp://en.wikipedia.org/wiki/Small_and_medium_enterprisehttp://en.wikipedia.org/wiki/United_Stateshttp://en.wikipedia.org/wiki/Californiahttp://en.wikipedia.org/wiki/Palo_Alto,_Californiahttp://en.wikipedia.org/wiki/Information_technologyhttp://en.wikipedia.org/wiki/Information_technologyhttp://en.wikipedia.org/wiki/Multinational_corporation8/10/2019 Project Report on Expert Support System
2/72
Massachusetts.[74]The company also has a large workforce and numerous offices
atBangalore,India,to address their back end and IT operations.MphasiS,which is headquartered
at Bangalore, also enabled HP to increase their footprint in the city as it was a subsidiary of EDS
which the company acquired.
HP Software Division is the company's enterprise software unit. For years,[when?]HP has produced
and marketed its brand of enterprise-management software,HP OpenView.From September 2005
HP purchased several software companies as part of a publicized, deliberate strategy to augment its
software offerings for large business customers.[77]HP Software sells several categories of
software, including:
business service management software
application lifecycle management software
mobile apps
big data andanalytics
service and portfolio management software
automation andorchestration software
enterprisesecurity software
ArcSight
Fortify Software
Atalla
TippingPoint
HP Software also providessoftware as a service (SaaS),cloud computing solutions, and software
services, including consulting, education, professional services, and support.
HP's Office of Strategy and Technology[78]has four main functions:
1.
steering the company's $3.6 billion research and development investment
2. fostering the development of the company's global technical community
3. leading the company's strategy and corporate development efforts,[79]
4.performing worldwide corporate marketing activities
http://en.wikipedia.org/wiki/Marlborough,_Massachusettshttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-74http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-74http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-74http://en.wikipedia.org/wiki/Bangalorehttp://en.wikipedia.org/wiki/Indiahttp://en.wikipedia.org/wiki/MphasiShttp://en.wikipedia.org/wiki/HP_Software_Divisionhttp://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_itemshttp://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_itemshttp://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_itemshttp://en.wikipedia.org/wiki/HP_OpenViewhttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-77http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-77http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-77http://en.wikipedia.org/wiki/Application_lifecycle_managementhttp://en.wikipedia.org/wiki/Mobile_appshttp://en.wikipedia.org/wiki/Big_datahttp://en.wikipedia.org/wiki/Analyticshttp://en.wikipedia.org/wiki/Orchestrationhttp://en.wikipedia.org/wiki/Security_softwarehttp://en.wikipedia.org/wiki/ArcSighthttp://en.wikipedia.org/wiki/Fortify_Softwarehttp://en.wikipedia.org/wiki/TippingPointhttp://en.wikipedia.org/wiki/Software_as_a_servicehttp://en.wikipedia.org/wiki/Cloud_computinghttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-78http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-78http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-79http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-79http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-79http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-79http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-78http://en.wikipedia.org/wiki/Cloud_computinghttp://en.wikipedia.org/wiki/Software_as_a_servicehttp://en.wikipedia.org/wiki/TippingPointhttp://en.wikipedia.org/wiki/Fortify_Softwarehttp://en.wikipedia.org/wiki/ArcSighthttp://en.wikipedia.org/wiki/Security_softwarehttp://en.wikipedia.org/wiki/Orchestrationhttp://en.wikipedia.org/wiki/Analyticshttp://en.wikipedia.org/wiki/Big_datahttp://en.wikipedia.org/wiki/Mobile_appshttp://en.wikipedia.org/wiki/Application_lifecycle_managementhttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-77http://en.wikipedia.org/wiki/HP_OpenViewhttp://en.wikipedia.org/wiki/Wikipedia:Manual_of_Style/Dates_and_numbers#Chronological_itemshttp://en.wikipedia.org/wiki/HP_Software_Divisionhttp://en.wikipedia.org/wiki/MphasiShttp://en.wikipedia.org/wiki/Indiahttp://en.wikipedia.org/wiki/Bangalorehttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-74http://en.wikipedia.org/wiki/Marlborough,_Massachusetts8/10/2019 Project Report on Expert Support System
3/72
Under the Office of Strategy and Technology comesHP Labs,the research arm of HP. Founded in
1966, HP Labs aims to deliver new technologies and to create business opportunities that go
beyond HP's current strategies. Examples of recent HP Labs technology includes theMemory spot
chip of 2006. HP Idea Lab further provides a web forum on early-state innovations to encourage
open feedback from consumers and the development community.[80]
HP also offers managed services by which they provide complete IT-support solutions for other
companies and organizations. Some examples of these include:
Offering "Professional Support" and desktop "Premier Support" forMicrosoft in
theEMEA marketplace. This is done from theLeixlip campus nearDublin,Sofia andIsrael.
Support is offered on the line of Microsoft operation systems, Exchange, SharePoint and some
office-applications.
http://en.wikipedia.org/wiki/HP_Labshttp://en.wikipedia.org/wiki/Memory_spot_chiphttp://en.wikipedia.org/wiki/Memory_spot_chiphttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-80http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-80http://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-80http://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Europe,_the_Middle_East_and_Africahttp://en.wikipedia.org/wiki/Leixliphttp://en.wikipedia.org/wiki/Dublin_(Ireland)http://en.wikipedia.org/wiki/Sofiahttp://en.wikipedia.org/wiki/Israelhttp://en.wikipedia.org/wiki/Israelhttp://en.wikipedia.org/wiki/Sofiahttp://en.wikipedia.org/wiki/Dublin_(Ireland)http://en.wikipedia.org/wiki/Leixliphttp://en.wikipedia.org/wiki/Europe,_the_Middle_East_and_Africahttp://en.wikipedia.org/wiki/Microsofthttp://en.wikipedia.org/wiki/Hewlett-Packard#cite_note-80http://en.wikipedia.org/wiki/Memory_spot_chiphttp://en.wikipedia.org/wiki/Memory_spot_chiphttp://en.wikipedia.org/wiki/HP_Labs8/10/2019 Project Report on Expert Support System
4/72
INTRODUCTION OF PROJECT
The project Expert Support System is aimed at enabling users of the Web based application to
submit queries or complaints in the form of tickets at their portal and are able to get a response
from the administrator or the concerned representative .The project has been developed in Java 2
Enterprise Edition (J2EE) using Hibernate framework in the front end and MySQL Database as the
backend. Due to the use of Hibernate framework the project is completely independent of the
backend used and the backend can be changed at any time without any changes in the applications.
Expert Support System enables the users to have the typical Query and complaint processing
facilities and features at their disposal. It resolves typical issues of manual complaint redressal and
activities into a controlled and closely monitored work flow in the architecture of the application.
This multi-platform solution brings in by default, the basic intelligence and immense possibilities
for further extension of the application as required by the user. The system makes it friendly to
distribute, share and manage the problems and queries with higher efficiency and easiness. The
objective of these websites is to serve as a common meeting ground for complainant and
representatives, both locally and globally, where the complainant find the solution to theircomplaints and queries. These sites are specifically designed for those who seek the most
demanding and challenging positions in their chosen field, with the most dynamic representatives.
This project enables the users to get replies as soon as possible. The administrator can view all the
tickets submitted by all the users and can delete the tickets that have been marked solved. This way
only the administrator has the right to delete any query and cannot delete a query until has been
closed by the complainant himself.
8/10/2019 Project Report on Expert Support System
5/72
PROJECT ABSTRACT
The project Expert Support System is aimed at enabling users of the Web based application tosubmit queries or complaints in the form of tickets at their portal and are able to get a response
from the administrator or the concerned representative .The project has been developed in Java 2
Enterprise Edition (J2EE) using Hibernate framework in the front end and MySQL Database as the
backend. Due to the use of Hibernate framework the project is completely independent of the
backend used and the backend can be changed at any time without any changes in the applications.
This project enables the users to get replies as soon as possible. The administrator can view all the
tickets submitted by all the users and can delete the tickets that have been marked solved. This way
only the administrator has the right to delete any query and cannot delete a query until has been
closed by the complainant himself
MODULES DESCRIPTION
Modules in the project :-
1. Administrator Module
2. Representative Module
3. User Module
4. Ticket Module
1. Administrator Module:
Administrator has the full authority over the website. He can view all the registered users and
have the power to delete them. He can edit the web pages and update them. He can view all
the user details as well. The responsibilities can be summarized as:
i. Login.ii.
Auto-Responder will be use to send message to client and Representative both.iii.
Can delete Tickets after solution completion.iv.
Answer Addition, Deletion, Updating and Searching.
8/10/2019 Project Report on Expert Support System
6/72
2. Representative Module
i. Login to enter their section.ii. Can manage Tickets as-
a. View Tickets to confirmationb. Sort Ticketsc.
Find Ticketsd. Replaye. Save as Answer Book.
iii. Viewing ticket modules and can (Open, Fixed, Closed)iv. Can recover and delete information of ticketsv. Can save Answer Books to similar type of problems.vi. Can change statusvii. Can manage timeviii. Save to the sent items of tickets
3. User or Client Module:-i.
Be Registered Firstii. Can login for further stepsiii. Can view details, Update detailsiv. Generate Ticket Request to askproblems solutionv. Can Interaction with FAQs (Frequently Ask Questions)
4. Ticket Management Module:-i. Ticket Generation of Various Typesii. Ticket Deletion but after solutioniii. Ticket status displayed i.e. which one is solvable or not
iv.
Ticket channels by which queries are inserted into the Expert support System
METHODOLOGY
We have developed this website after duly spending time on each website development phase
individually and freezing the status before we move on to the next phase.
1.In the analysis phase, we have attempted to understand the system completely in terms of its
objectives & the problems faced. All the objectives were further subdivided into a set of smaller
objectives which in turn were subdivided in to the set of actions. The analysis also gave us an
overview about the individual expectations from each function and the challenges faced by that
function due to which the ultimate objective is not achieved.
2.Before we moved to the designing phase, the objectives & challenges were clearly understood
and we actually converted the set of objectives & actions into modules.
8/10/2019 Project Report on Expert Support System
7/72
The modules were designed in terms of their input, output, flow of information, storage of
information & communication amongst each other, with the user and with the system. All the data
objects were carefully designed and classified in terms of their inputs & outputs.
3. After the analysis & design phases were over, we moved on to coding phase, where the
implementation of tasks or functions on-paper were actualized. This was the phase where we
actually became the use to have the look & feel of the application, where we actually thought
from the users perspective & representatives perspective keeping all the objectives & challenges
into consideration.
4. Then came the testing phase in which after developing the complete system, we rigorously
tested it using all the testing types and checked every characteristic / attribute of the application of
whether it coincides and is in line with the objectives and users comfort.
SYSTEM ANALYSIS
DEFINITION
System Analysis is the detailed study of the various operations performed by the system
and their relationships within and outside the system. Analysis is the process of breaking
something into its parts so that the whole may be understood. System analysis is concerned with
becoming aware of the problem, identifying the relevant and most decisional variables, analyzing
and synthesizing the various factors and determining an optional or at least a satisfactory solution.
During this a problem is identified, alternate system solutions are studied and recommendations
are made about committing the resources used to the system.
DESCRIPTION OF PRESENT SYSTEM
Presently complaint redressal is done manually. That is if a company or organization needs
to reply the user they make a phone call or send a letter through post. People who are eligible send
application to the organization or company. From these applications they are called for interviews
or tests. After tests company has to do short listing manually. From these shortlisted candidates,
they are called for interviews. After interview short listed candidates are employed.
So its all a time consuming procedure.
8/10/2019 Project Report on Expert Support System
8/72
LIMITATIONS OF PRESENT SYSTEM
Complaint Redressal is done manually. These tasks are time consuming. It may take one
month or long. People around the world cannot apply. Online Placement system very convenient
because in the manual system there are lot of difficulties in conducting and managing a recruitment
exam, short listing, maintaining staff etc.
PROPOSED SYSTEM
Online Complaint redressal is aimed at developing a web-based and central complaint
processing system for the user and representatives of a company. Some features of this system will
be creating complaints, storing application data, and query process initiation, Scheduling checks,Storing query results for the user and finally completing the complainants work. This project is
an online website in which complainants can register themselves and then attend the query and get
replies.
SYSTEM DESIGN
INTRODUCTION
The most creative and challenging face of the system development is System Design. It provides
the understanding and procedural details necessary for the logical and physical stages of
development. In designing a new system, the system analyst must have a clear understanding of
the objectives, which the design is aiming to fulfill. The first step is to determine how the output is
to be produced and in what format. Second, input data and master files have to be designed to meet
the requirements of the proposed output. The operational phases are handled through program
construction and testing.
Design of the system can be defined as a process of applying various techniques and principles for
the purpose of defining a device, a process or a system in sufficient detail to permit its physical
realization. Thus system design is a solution to how to approach to the creation of a new system.
This important phase provides the understanding and the procedural details necessary for
implementing the system recommended in the feasibility study. The design step provides a data
design, architectural design, and a procedural design.
8/10/2019 Project Report on Expert Support System
9/72
4.1 OUTPUT DESIGN
In the output design, the emphasis is on producing a hard copy of the information requested
or displaying the output on the screen in a predetermined format. Two of the most output media
today are printers and the screen. Most users now access their reports from either a hard copy or
screen display. Computers output is the most important and direct source of information to the
user, efficient, logical, output design should improve the systems relations with the user and help
in decision-making.
As the outputs are the most important source of information to the user, better design
should improve the systems relations and also should help in decision-making. The output devices
capability, print quality, response time requirements etc should also be considered, form design
elaborates the way the output is presented and layout available for capturing information.
Its very helpful to produce the clear, accurate and speedy information for end users.
4.2 INPUT DESIGN
In the input design, user-originated inputs are converted into a computer-based system
format. It also includes determining the record media, method of input, speed of capture and entry
on to the screen. Online data entry accepts commands and data through a keyboard. The major
approach to input design is the menu and the prompt design. In each alternative, the users options
are predefined. The data flow diagram indicates logical data flow, data stores, source anddestination. Input data are collected and organized into a group of similar data once identified
input media are selected for processing.
In this software, importance is given to develop Graphical User Interface (GUI), which
is an important factor in developing efficient and user friendly software. For inputting user data,
attractive forms are designed. User can also select the desired options from the menu, which
provides all possible facilities. Also the important input format is designed in such a way that
accidental errors are avoided. The user has to input only just the minimum data required, which
also helps in avoiding the errors that the users may make. Accurate designing of the input format is
very important in developing efficient software. The goal of input design is to make entry as easy,
logical and free from errors.
8/10/2019 Project Report on Expert Support System
10/72
DATA FLOW DIAGRAM
A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes that
change or transform data throughout a system. Its a structured analysis and design tool that can be
used for flowcharting in place of, or in association with, information oriented and process oriented
system flowcharts. When analysts prepare the Data Flow Diagram, they specify the user needs at a
level of detail that virtually determines the information flow into and out of the system and the
required data resources. This network is constructed by using a set of symbols that do not imply a
physical implementation. The Data Flow Diagram reviews the current physical system, prepares
input and output specification, specifies the implementation plan etc.
Four basic symbols are used to construct data flow diagrams. They are symbols that represent data
source, data flows, and data transformations and data storage. The points at which data are
transformed are represented by enclosed figures, usually circles, which are called nodes.
Data Flow Diagram Symbols:-
_ Source or Destination of data
_ Data Flow
_ Process
_ Storage
Steps to Construct Data Flow Diagrams
Four steps are commonly used to construct a DFD
Process should be named and numbered for easy reference. Each name should be
representative of the process.
The direction of flow is from top to bottom and from left to right.
8/10/2019 Project Report on Expert Support System
11/72
When a process is exploded into lower level details they are numbered.
The names of data stores, sources and destinations are written in capital letters.
Rules for constructing a Data Flow Diagram
Arrows should not cross each other.
Squares, Circles and files must bear names.
Decomposed data flow squares and circles can have same names.
Choose meaningful names for dataflow.
Draw all data flows around the outside of the diagram.
CONTEXT DIAGRAM
Administrator
Expert
SupportRepresentative UserSystem
Database
8/10/2019 Project Report on Expert Support System
12/72
5.5DATA FLOW DIAGRAM (Levels)
Level 1: Admin
UsernamePassword
Login CategoryAdmin
If authenticated
user
Representativ
eManagement
System 1.1.1
User Data store
Management
1.1.2
Complaint
Processing
8/10/2019 Project Report on Expert Support System
13/72
Level 2: Company Management
Validate
TblRepresenative
Representative
Admin
TblUser
View
Details
8/10/2019 Project Report on Expert Support System
14/72
Level 3: User Management
Updat
eUser
TblLogin
ViewComplaint ofAdmin Complaint/Query
Registered users
TblUser
User details
View Details Previous details
TblExperience
User details
TblEducation
8/10/2019 Project Report on Expert Support System
15/72
Level 4:
Represenative
Login
ChangeCompany
Password
View
Result
Edit Profile
Query
Details
Questions
Update
Password
UpdateCompany details
InsertJob details
Add
View
8/10/2019 Project Report on Expert Support System
16/72
TOOLS AND TECHNOLOGY
Following tools and language has been used to make this application:-
Software Configuration:
Operating system: Window 7 Professional
Language: J2EE (JSP)
Java Version: Java 6.0
Tools: - HTML,CSS,XML, JQUERY
Database: MS Access 2010
Web Browser: Firefox 12
Framework:Neat Beans 7.0.1
Hardware Configuration:
Processor: Intel(R) Core 2 (TM) Duo Cpu T5250 @1.50 GHz
RAM: 2.0 GB
System Type: 32 Bit Operating System
LANGUAGE AND TECNOLOGY REQUIREMENTS
INTRODUCTION TO JAVA
About Java:
Initially the language was called as oak but it was renamed as java in 1995.The
primary motivation of this language was the need for a platform-independent (i.e.
architecture neutral) language that could be used to create software to be embedded in
various consumer electronic devices.
Java is a programmers language
Java is cohesive and consistent
Except for those constraint imposed by the Internet environment. Java gives the
programmer, full control
Finally Java is to Internet Programming where c was to System Programming.
8/10/2019 Project Report on Expert Support System
17/72
Importance of Java to the Internet
Java has had a profound effect on the Internet. This is because; java expands the Universe of
objects that can move about freely in Cyberspace. In a network, two categories of objects are
transmitted between the server and the personal computer. They are passive information and
Dynamic active programs. in the areas of Security and probability. But Java addresses these
concerns and by doing so, has opened the door to an exciting new form of program called the
Applet.
Applications and applets. An application is a program that runs on our Computer under the
operating system of that computer. It is more or less like one creating using C or C++ .Javas
ability to create Applets makes it important. An Applet I san application, designed to be
transmitted over the Internet and executed by a Java-compatible web browser. An applet I
actually a tiny Java program, dynamically downloaded across the network, just like an image.
But the difference is, it is an intelligent program, not just a media file. It can be react to the user
input and dynamically change.
Java ArchitectureJava architecture provides a portable, robust, high performing environment for development.
Java provides portability by compiling the byte codes for the Java Virtual Machine, which is then
interpreted on each platform by the run-time environment. Java is a dynamic system, able to load
code when needed from a machine in the same room or across the planet.
Compilation of code
When you compile the code, the Java compiler creates machine code (called byte code)for a
hypothetical machine called Java Virtual Machine(JVM). The JVM is supposed t executed the
byte code. The JVM is created for the overcoming the issue of probability. The code is written
and compiled for one machine and interpreted on all machines .This machine is called Java
Virtual Machine.
8/10/2019 Project Report on Expert Support System
18/72
Compiling and interpreting java source code.
JavaPc Java Byte interpreter
compiler code
Macintosh Javacompiler
Platform interpreterm
Source independ acintosh
codeSPARC ent
Java
Compiler interpreter(
SPARC)
During run-time the Java interpreter tricks the byte code file into thinking that it is running on a
Java Virtual Machine. In reality this could be an Intel Pentium windows 95 or sun SPARCstation
running Solaris or Apple Macintosh running system and all could receive code from any
computer through internet and run the Applets.
Simple:
Java was designed to be easy for the Professional programmer to learn and to use effectively. If
you are an experienced C++ Programmer. Learning Java will oriented features of C++ . Most
of the confusing concepts from C++ are either left out of Java or implemented in a cleaner,
more approachable manner. In Java there are a small number of clearly defined ways toaccomplish a given task.
Object oriented:
Java was not designed to be source-code compatible with any other language. This allowed
the Java team the freedom to design with a blank state. One outcome of this was a clean
usable, pragmatic approach to objects. The object model in Java is simple and easy to extend,
8/10/2019 Project Report on Expert Support System
19/72
while simple types, such as integers, are kept as high-performance non-objects.
Robust:
The multi-platform environment of the web places extraordinary demands on a program, because
the program must execute reliably in a variety of systems. The ability to create robust programs.
Was given a high priority in the design of Java. Java is strictly typed language; it checks your
code at compile time and runtime.
Java virtually eliminates the problems of memory management and deal location, which
is completely automatic. In a well-written Java program, all run-time errors can and should
be managed by your program.
Servlets/JSP
INTRODUCTION
A Servlet is a generic server extension. A Java class that can be loaded Dynamically to
expand the functionality of a server.Servlets are commonly used with web servers. Where
they can take the place CGI scripts.
A servlet is similar to proprietary server extension, except that it runs inside a Java
Virtual Machine (JVM) on the server, so it is safe and portable.
Servlets operate solely within the domain of the server.
Unlike CGI and Fast CGI, which use multiple processes to handle separate program or
separate requests, separate threads within web server process handle all servlets. This
means that servlets are all efficient and scalable.
Servlets are portable; both across operating systems and also across web servers. Java
Servlets offer the best possible platform for web application development.
Servlets are used as replacement for CGI scripts on a web server, they can extend anysort of server such as a mail server that allows servelts t extend its functionality perhaps
by performing a virus scan on all attached documents or handling mail filtering tasks.
Servlets provide a Java-based solution used to address the problems currently associated
with doing server-side programming including inextensible scripting solutions platform-
specific APIs and incomplete interface.
Servlets are objects that conform to a specific interface that can be plugged into a Java-
8/10/2019 Project Report on Expert Support System
20/72
based server.Servlets are to the server-side what applets are to the server-side what
applets are to the client-side-object byte codes that can be dynamically loaded off the net.
They differ form applets in than they are faceless objects(with out graphics or a GUI
component).They serve as platform independent, dynamically loadable,plugable helper
byte code objects on the server side that can be used to dynamically extend server-side
functionality.
For example an HTTP servlet can be used to generate dynamic HTML content when you use
servlets to do dynamic content you get the following advantages:
Theyre faster and cleaner then CGI scripts
They use a standard API( the servlet API)
They provide all the advantages of Java (run on a variety of servers without needing to berewritten)
Attractiveness of Servlets:
They are many features of servlets that make them easy and attractive to tuse these
include:
Easily configure using the GUI-based Admin tool
Can be Loaded and Invoked from a local disk or remotely across the network.
Can be linked together or chained, so that on servlet can call another servlet, or several
servlets in sequence.
Can be called dynamically from with in HTML, pages using server-side include-tags.
Are secure-even when downloading across the network, the servlet security model and
servlet and box protect your system from unfriendly behavior.
Advantages of the servlet API
One of the great advantages of the servlet API is protocol independent. It assumes nothing about:
The protocol being used to transmit on the net
How it is loaded
The server environment it will be running in
8/10/2019 Project Report on Expert Support System
21/72
These quantities are important, because it allows the Servlet API to be embedded in many
different kinds of servers. There are other advantages to the servlet API as well These
include:
Its extensible-you can inherit all your functionality from the base classes made available
to you
Its simple small, and easy to use.
Features of Servlets:
Servlets are persistent. Servlet are loaded only by the web server and can maintain
services between requests.
Servlets are fast. Since servlets only need to be l\loaded once, they offer much better
performance over their CGI counterparts.
Servlets are platform independent.
Servlets are extensible Java is a robust, object-oriented programming language, which
easily can be extended to suit your needs.
Servlets are secure
Servlets are used with a variety of client.
Loading Servlets:
Servlets can be loaded from their places. From a directory that is on the CLASSPATH. The
CLASSPATH of the Java Webserver includes service root/classes/, which is where the system
classes reside
From the
8/10/2019 Project Report on Expert Support System
22/72
Loading Remote Servlets
Remote servlets can be loaded by:
Configuring the admin Tool to setup automatic loading of remote servlets.
Selecting up server side include tags in .html files
Defining a filter chain Configuration
The Servlet Life Cycle:-
The Servlet life cycle is one of the most exciting features of Servlets.This life cycle is a powerful
hybrid of the life cycles used in CGI programming and lower-level NSAPI and ISAPI
programming.
The servlet life cycle allows servlet engines to address both the performance and resource
problems of CGI and the security contents of low level server API programming.
Servlet life cycle is highly flexible Servers have significant leeway in how they choose to
support servlets. The only hard and fast rule is that a servlet engine must confor to the following
life cycle contact:
Create and initialize the servlets
Handle zero or more service from clients
Destroy the servlet and then garbage collects it.
Its perfectly legal for a servlet t be loaded, created an initialized in its own JVM,only to be
destroyed an garbage collected without handling any client request or after handling just one
request
The most common and most sensible life cycle implementations for HTTP servelts are:
Single java virtual machine and astatine persistence.
Init and Destroy:-
Just like Applets servlets can define init() and destroy() methods, A servlets init(ServiceConfig)
method is called by the server immediately after the server constructs the servlets instance.
Depending on the server and its configuration, this can be at any of these timesWhen the server
states. When the servlet is first requested, just before the service() method is invoked at the
request of the server administrator.
8/10/2019 Project Report on Expert Support System
23/72
In any case, init () is guaranteed to be called before the servlet handles its first request ,The init ()
method is typically used to perform servlet initialization creating or loading objects that are used
by the servlet in handling of its request. In order to providing a new servlet any information
about itself and its environment, a server has to call a servelts init () method and pass an object
that implement the ServletConfig interface.
STATELESS PROTOCOL
HTTP is a stateless protocol, it provides no way for a server to recognize that a sequence of
requests is all from the same client. This causes a problem for application such as shopping cart
applications. Even in chat application server cant know exactly whos making a request of
several clients.
The solution for this is for client to introduce itself as it makes each request, each clients needs to
provide a unique identifier that lets the server identify it, or it needs to give some information
that the server can use to properly handle the request, there are several ways to send this
introductory information with each request Such as:
User authorization:
One way to perform session tracking is to leverage the information that comes with
User authorization. When a web server restricts access to some of its resources to only those
clients that log in using a recognized username and password. After the client logs in, the
username is available to a servlet through getRemoteUser(),When use the username to track the
session. Once a user has logged in, the browser remembers her username and resends the name
and password as the user views new pages on the site. A servlet can identify the user through her
username and theyre by Track her session.
The biggest advantage of using user authorization to perform session tracking is that its
easy to implement. Simply tell the protect a set of pages, and use getRemoteUser () to
identify each client. Another advantage is that the technique works even when the user
accesses your site form or exists her browser before coming back.
The biggest disadvantage of user authorization is that it requires each user to register for
an account and then log in in each time the starts visiting your site. Most users will
tolerate registering and lagging in as a necessary evil when they are accessing sensitive
information, but its all overkill for simple session tracking. Other problem with user
8/10/2019 Project Report on Expert Support System
24/72
authorization is that a user cannot simultaneously maintain more than one session at the
same site.
Persistent Cookies:
A fourth technique to perform session tracking involves persistent cookies. A cookie is a bit of
information. Sent by a web server to a browser that can later be read back form that browser.
When a browser receives a cookie, it saves the cookie and there after sends the cookie back to
the server each time it accesses a page on that server, subject to certain rules. Because a cookies
value can uniquely identify a client, cookies are often used for session tracking.
Persistent cookies offer an elegant, efficient easy way to implement session tracking. Cookies
provide as automatic an introduction for each request as we could hope for. For each request, a
cookie can automatically provide a clients session ID or perhaps a list of clients performance.
The ability to customize cookies gives them extra power and versatility.
The biggest problem with cookies is that browsers dont always accept cookies sometimes this isbecause the browser doesnt support cookies. More often its because the browser doesnt
support cookies. More often its because the user has specifically configured the browser torefuse cookies.
JDBC
What is JDBC?
Any relational database. One can write a single program using the JDBC API,and the JDBC is a
Java API for executing SQL, Statements(As a point of interest JDBC is trademarked name and is
not an acronym; nevertheless,Jdbc is often thought of as standing for Java Database
Connectivity. It consists of a set of classes and interfaces written in the Java Programming
language.JDBC provides a standard API for tool/database developers and makes it possible to
write database applications using a pure Java API.
Using JDBC, it is easy to send SQL statements to virtually program will be able to send SQL
.statements to the appropriate database. The Combination of Java and JDBC lets a programmer
writes it once and run it anywhere.
What Does JDBC Do?
Simply put, JDBC makes it possible to do three things
Establish a connection with a database
8/10/2019 Project Report on Expert Support System
25/72
Send SQL statements
Process the results
JDBC Driver Types
The JDBC drivers that we are aware of this time fit into one of four categories
JDBC-ODBC Bridge plus ODBC driver
Native-API party-java driver
JDBC-Net pure java driver
Native-protocol pure Java driver
An individual database system is accessed via a specific JDBC driver that implements the
java.SQL.Driver interface. Drivers exist for nearly all-popular RDBMS systems, through few are
available for free. Sun bundles a free JDBC-ODBC bridge driver with the JDK to allow access to
a standard ODBC, data sources, such as a Microsoft Access database, Sun advises against using
the bridge driver for anything other than development and very limited development.
JDBC drivers are available for most database platforms, from a number of vendors and in a
number of different flavors. There are four driver categories
Type 01-JDBC-ODBC Bridge Driver
Type 01 drivers use a bridge technology to connect a java client to an ODBC database
service. Suns JDBC-ODBC bridge is the most common type 01 driver. These drivers
implemented using native code.
Type 02-Native-API party-java Driver
Type 02 drivers wrap a thin layer of java around database-specific native code libraries
for Oracle databases, the native code libraries might be based on the OCI(Oracle call Interface)
libraries, which were originally designed for C/C++ programmers, Because type-02 drivers are
implemented using native code. In some cases they have better performance than their all-java
counter parts. They add an element of risk, however, because a defect in a drivers native code
section can crash the entire server.
8/10/2019 Project Report on Expert Support System
26/72
26
Type 03-Net-Protocol All-Java Driver
Type 03 drivers communicate via a generic network protocol to a piece of custom
middleware. The middleware component might use any type of driver to provide the actual
database access. These drivers are all java, which makes them useful for applet deployment and
safe for servlet deployment
Type-04-native-protocol All-java Driver
Type o4 drivers are the most direct of the lot. Written entirely in java, Type 04 drivers
understand database-specific networking. Protocols and can access the database directly without
any additional software
JDBC-ODBC Bridge
If possible use a Pure Java JDBC driver instead of the Bridge and an ODBC driver. This
completely eliminates the client configuration required by ODBC.It also eliminates the potential
that the Java VM could be corrupted by an error in the native code brought in by the Bridge (that
is, the Bridge native library, the ODBC driver manager library, library, the ODBC driver library,
and the database client library).
WHAT IS The JDBC-ODBE Bridge?
The JDBC-ODBC Bridge is a Jdbc driver, which implements JDBC operations by translating them
into ODBC operations. To ODBC it appears as a normal application program. The Bridge is
implemented as the sun.jdbc.odbc Java package and contains a native library used to access
ODBC.The Bridge is joint development of Intersolv and Java Soft.
HTML
Hypertext Markup Language (HTML), the languages of the World Wide Web (WWW), allows
users to produces web pages that included text, graphics and pointer to other web pages(Hyperlinks).
HTML is not a programming language but it is an application of ISO Standard 8879, SGML
(Standard Generalized Markup Language), but Specialized to hypertext and adapted to the Web.
8/10/2019 Project Report on Expert Support System
27/72
27
The idea behind Hypertext one point to another point. We can navigate through the information
based on out interest and preference. A markup language is simply a series of items enclosed
within the elements should be displayed.
Hyperlinks are underlined or emphasized works that load to other documents or some portions of
the same document.
Html can be used to display any type of document on the host computer, which can be
geographically at a different location. It is a versatile language and can be used on any platform or
desktop
HTML provides tags (special codes) to make the document look attractive.
HTML provides are not case-sensitive. Using graphics, fonts, different sizes, color, etc... can
enhance the presentation of the document. Anything that is not a tag is part of the document it self.
Basic Html Tags:
3 Specific Comments.
4 Creates Hypertext links.
5 Creates hypertext links.
6 .. Formats text in large-font
7 . Contains all tags and text in the Html-document8 Creates Text
9 .. Definition of a term.
10 Creates table
11.. Indicates table data in a table.
12.. Designates a table row
13. Creates a heading in a table.
ADVANTAGES:-
A HTML document is small and hence easy to send over the net.It is small because it does not
include formatted information.
HTML is platform independent
HTML tags are not case-sensitive.
8/10/2019 Project Report on Expert Support System
28/72
28
JAVA SCRIPT
The Java Script Language
JavaScript is a compact, object-based scripting language for developing client and server internet
applications. Netscape Navigator 2.0 interprets JavaScript statements embedded directly in an
HTML page. And Livewire enables you to create server-based applications similar to common
gateway interface (CGI) programs.
In a client application for Navigator, JavaScript statements embedded in an HTML Page can
recognize and respond to user events such as mouse clicks form Input, and page navigation.
For example, you can write a JavaScript function to verify that users enter valid information into a
form requesting a telephone number or zip code. Without any network transmission, an Html page
with embedded Java Script can interpret the entered text and alert the user with a message dialog if
the input 99is invalid or you can use JavaScript to perform an action (such as play an audio file,
execute an applet, or communicate with a plug-in) in response to the user opening or exiting a
page.
8/10/2019 Project Report on Expert Support System
29/72
29
CODING:
Index.jsp
Expert Support System Project
JSP PROJECT
Login Form
Registration Form
8/10/2019 Project Report on Expert Support System
30/72
30
Login Now
Username
Password
sign in with
8/10/2019 Project Report on Expert Support System
31/72
31
8/10/2019 Project Report on Expert Support System
32/72
32
}
else if(e.getGrp().equals("representative"))
{
response.sendRedirect("representativeindex.jsp");
}
}
else
{
request.setAttribute("Name", "password Error");
}
}
}
}
%>
8/10/2019 Project Report on Expert Support System
33/72
33
-->
AllTickets.jsp
ESS
8/10/2019 Project Report on Expert Support System
34/72
34
8/10/2019 Project Report on Expert Support System
35/72
35
{
%>
Welcome
8/10/2019 Project Report on Expert Support System
36/72
36
{
%>
8/10/2019 Project Report on Expert Support System
37/72
37
PrintTicket.jsp
ESS
8/10/2019 Project Report on Expert Support System
38/72
38
8/10/2019 Project Report on Expert Support System
39/72
39
Welcome
Thanks for registering your ticket:-
8/10/2019 Project Report on Expert Support System
40/72
40
ad.setClient_Id(cid);
Transaction t2 = s3.beginTransaction();
s3.save(ad);
t2.commit();;
out.println("");
out.println("Ticket Id:" + lastTicketID);
out.println("");
out.println("Please use this Ticket Id for all further correspondences");
}
catch(Exception e)
{
out.println(e.getMessage());
}
%>
8/10/2019 Project Report on Expert Support System
41/72
41
Addfaq.jsp
8/10/2019 Project Report on Expert Support System
42/72
42
try
{
String path = request.getServletContext().getRealPath(File.separator)+"upload1";
File f = new File(path,"faq.txt");
PrintWriter pw = new PrintWriter(new FileOutputStream(f));
pw.println(toWrite);
pw.close();
} catch (IOException e)
{
e.printStackTrace();
}
}catch (Exception e) {System.out.println("Error: " + e.getMessage());
}
%>
AdminRegister.jsp
Register Admin
8/10/2019 Project Report on Expert Support System
43/72
43
Register
8/10/2019 Project Report on Expert Support System
44/72
44
out.println("Registered Successfully");
}
%>
AdminIndex.jsp
ESS
8/10/2019 Project Report on Expert Support System
45/72
8/10/2019 Project Report on Expert Support System
46/72
46
Announce.jsp
ESS
8/10/2019 Project Report on Expert Support System
47/72
47
8/10/2019 Project Report on Expert Support System
48/72
48
Ticket
Date
Group
Announcement
Issue
Welcome
Select a
Group
user
representative
8/10/2019 Project Report on Expert Support System
49/72
8/10/2019 Project Report on Expert Support System
50/72
50
src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js">
$('input, textarea').placeholder();
EachTicket_rep.jsp
ESS
8/10/2019 Project Report on Expert Support System
51/72
51
8/10/2019 Project Report on Expert Support System
52/72
52
{
%>
Welcome
8/10/2019 Project Report on Expert Support System
53/72
53
String s = request.getParameter("itemId");
out.print("Ticket ID: "+s);
%>
User Reply:
8/10/2019 Project Report on Expert Support System
54/72
54
List data1 = cccc.list();
status1 = null;
for(Ticket_Details x : data1)
{
status1 = x.getStatus();
}
if(sol != null && !sol.isEmpty())
{
%>
Representative Reply:
8/10/2019 Project Report on Expert Support System
55/72
55
8/10/2019 Project Report on Expert Support System
56/72
56
%>
RepresentativeIndex.jsp
8/10/2019 Project Report on Expert Support System
57/72
57
ESS
8/10/2019 Project Report on Expert Support System
58/72
58
uname= ugrp = null;
HttpSession checksession = null;
checksession = request.getSession(false);
if(checksession!=null)
{
uname = checksession.getAttribute("usname").toString();
ugrp= checksession.getAttribute("usgrp").toString();
}else
{
response.sendRedirect("index.jsp");
}
%>
Welcome
Announcemets:-
8/10/2019 Project Report on Expert Support System
59/72
59
int counter = 0;
for(Announcement data : l1)
{
out.print("");
out.print(++counter);
out.print("] Topic: ");
out.print(data.getTopic());
out.println("");
out.println("Announcement: ");
out.print(data.getAnnouncement());
out.println("");
}
%>
TicketSubmit.jsp
8/10/2019 Project Report on Expert Support System
60/72
60
Submit a Ticket
8/10/2019 Project Report on Expert Support System
61/72
61
loginid= Integer.valueOf(loginid1);
}else
{
response.sendRedirect("index.jsp");
}
%>
Ticket
Username
Department
Priority
Issue
8/10/2019 Project Report on Expert Support System
62/72
62
bottom: 50px;">
Welcome
Select a
DepartmentSales Support
Technical
Support
Accounts
Support
Select a
Priority
Urgent
Normal
8/10/2019 Project Report on Expert Support System
63/72
63
8/10/2019 Project Report on Expert Support System
64/72
64
RequestDispatcher rd=request.getRequestDispatcher("Print_Ticket.jsp");
rd.forward(request, response);
}
}
%>
8/10/2019 Project Report on Expert Support System
65/72
65
NewRep.jsp
ESS PROJECT
function check(input) {
if (input.value != document.getElementById('password1').value) {
input.setCustomValidity('The two passwords must match.');
} else {
// input is valid -- reset the error message
input.setCustomValidity('');
}
}
8/10/2019 Project Report on Expert Support System
66/72
66
Note: All fields are required.
Select a Group
Sales Support
Technical
Support
Accounts
Support
8/10/2019 Project Report on Expert Support System
67/72
67
We'll keep this private.
Should be unique
Atleast 8 characters long.
Select Country
India Only
Outside India
8/10/2019 Project Report on Expert Support System
68/72
68
Choose a Security
Question...
What is your pet name?
What is your first school
name?
What is your birth place?
Do you agree to the terms and
conditions?
8/10/2019 Project Report on Expert Support System
69/72
69
8/10/2019 Project Report on Expert Support System
70/72
70
String sans = request.getParameter("sans");
Integer fax = Integer.valueOf(request.getParameter("fax"));
Session s = HibernateUtil.getSession();
Criteria c= s.createCriteria(Login_Details.class);
c.add(Restrictions.eq("user_Name",userid));
if(c.list().isEmpty())
{
Login_Details e = new Login_Details();
e.setUser_Name(userid);
e.setPasswd(pwd);
e.setGrp("representative");
Represen_Details cd = new Represen_Details();
cd.setAddress(addr);
cd.setCity(city);
cd.setCountry(Country);
cd.setDate(Calendar.getInstance());
cd.setEMail(email);
cd.setFax(fax);
cd.setFirst_Name(fname);cd.setLast_Name(lname);
cd.setPasswd(pwd);
cd.setPh_Number(mobile);
cd.setSec_Ques(sque);
cd.setSec_Ans(sans);
cd.setState(State);
cd.setLdetail(e);
cd.setQualification(qualification);
cd.setSpecializaion(specialization);
cd.setSalary(salary);
cd.setGrp(grp);
s.save(e);
8/10/2019 Project Report on Expert Support System
71/72
71
s.save(cd);
Transaction t = s.beginTransaction();
t.commit();
String temp = "\n" +
"\n" +
"\n" +
"SUCCESSFULLY Registered\n" +
"\n" +
"\n" +
"";
request.setAttribute("Name", temp);
}
else
{
request.setAttribute("Name", "Username Already Registered");
}}
%>
8/10/2019 Project Report on Expert Support System
72/72