Sie sind auf Seite 1von 44

Submitted by

Gangotri Chanda
4th year, B. Tech. (CSE), Camellia Institute of Technology, Maddhyamgram
Batch no. A-JAVA 17

Under Supervision of
Tanmoy Gandhi
HCL Infosystems Ltd.,
226B, Rashbihari Avenue,
Gariahat, Kolkata-19
Performa for B. Tech. (4th year, 1st semester) Project Certificate

FROM PROJECT GUIDE

This is to certify that the Project entitled, Online Hotel Management System embodies
the original work done by Gangotri Chanda in partial fulfillment of Bachelor of Technology,
4th year, 1st semester examination of the West Bengal University of Technology.

_____________________________
Tanmoy Gandhi,
HCL Infosystems Ltd.,
226B, Rashbihari Avenue,
Gariahat, Kolkata-19

Project on Online Hotel Management System 2


Acknowledgement
The satisfaction that accompanies that the successful completion of any task would be
incomplete without the mention of people whose ceaseless cooperation made it possible,
whose constant guidance and encouragement crown all efforts with success.
We are grateful to our project guide Mr. Tanmoy Gandhi for the guidance, inspiration
and constructive suggestions that helpful us in the preparation of this project.

Gangotri Chanda

Project on Online Hotel Management System 3


Table of Contents

 Introduction

 Objectives

 Advantage

 System Analyses

 Feasibility Study

 System Requirements

 Project category

 System study & analysis

 Principles of system analysis

 Entity relationship diagram (ERD)

 Cardinality & modality

 Entity relationship diagram (ERD) for Hotel Management System

 Data flow diagram for check in of a customer

 Data flow diagram for check out of a customer

 Data modeling

 Function details

 Scope of future application.

 Some of coding

 Screenshots

Project on Online Hotel Management System 4


 Conclusions

 Bibliography

Introduction
This is a Project work undertaken in context of partial fulfillment of B. Tech. We have
tried our best to make the complicated process of Online Hotel Management System as
simple as possible using Structured & Modular technique & Menu oriented interface. We
have tried to design the software in such a way that user may not have any difficulty in using
this package & further expansion is possible without much effort. Even though we cannot
claim that this work to be entirely exhaustive, the main purpose of my exercise is perform
each Employee’s activity in computerized way rather than manually which is time
consuming. We are confident that this software package can be readily used by non-
programming personal avoiding human handled chance of error. This project is used by three
types of users
1. Normal Users
2. Power Users
3. Administrator
Mainly two types of users can use this project, normal user and power user. A normal
user can view the rooms and their availability only. However, a power user can control
booking rooms as well as check whether any room is blank or not, i.e. check ins and check
outs, allowing the customers to book a room in the hotel. Both these types of users will have
unique user id and password. Creating a normal user account is very simple, but you need the
administrator password to create a power user. If you are not any type of users, then you can
only view gallery, help, credit, contact us & submit feedback.
The main aim of the entire activity is to automate the process of day to day activities of
Hotel like Room activities, Admission of a New Customer, Assign a room according to
customer’s demand, checkout of a customer and releasing the room.
Hotel Management System has been designed to computerize the following functions that
are performed by the system:
Room Detail Functions:
Opening a New Room
Modification to room assigned
Check-in and check-out Detail Functions:
Admission of New customer
Check-out of customer
Room assigning related to customer’s need.
Statement of Customer Details:
Check-in customer
Check-out customer
Room Details

Project on Online Hotel Management System 5


Total number of Customers in the Hotel:
Individual customer Report

Objectives
During the past several decades’ personnel function has been transformed from a
relatively obscure record keeping staff to central and top level management function. There
are many factors that have influenced this transformation like technological advances,
professionalism, and general recognition of human beings as most important resources.
• A computer based management system is designed to handle all the primary
information required to calculate monthly statements. Separate database is maintained to
handle all the details required for the correct statement calculation and generation.
• This project intends to introduce more user friendliness in the various activities such
as record updation, maintenance, and searching.
• The searching of record has been made quite simple as all the details of the customer
can be obtained by simply keying in the identification of that customer.
• Similarly, record maintenance and updation can also be accomplished by using the
identification of the customer with all the details being automatically generated. These
details are also being promptly automatically updated in the master file thus keeping the
record absolutely up-to-date.
• The entire information has maintained in the database or Files and whoever wants to
retrieve can’t retrieve, only authorization user can retrieve the necessary information which
can be easily be accessible from the file.
• The main objective of the entire activity is to automate the process of day to day
activities of Hotel like:
 Room activities,
 Admission of a New Customer,
 Assign a room according to customer’s demand,
 Checkout of a customer and releasing the room
 Advance online bookings.
 Feedbacks
This project has some more features:
• System Connectivity
• No data duplication
• No Paper Work Required
• Time Efficient
• Cost Efficient
• Automatic data validation
• User friendly environment

Project on Online Hotel Management System 6


• Data security and reliability
• Fast data insertion & retrieval
• Easy performance check

Advantage
We have designed the given proposed system in the JSP to automate the process of
Hotels. This project is useful for the authorities who keep track of all the users registered in a
particular state .The authority can add hotel packages, room details, availability of rooms,
online booking etc. The following steps that give the detailed information of the need of
proposed system are:
Performance: During past several decades, the records are supposed to be manually
handled for all activities. The manual handling of the record is time consuming and highly
prone to error. To improve the performance of the Hotel Management System, the
computerized system is to be undertaken. This project is fully computerized and user friendly
even that any of the members can see the report and status of the company.
Efficiency: The basic need of this website is efficiency. The website should be efficient
so that whenever a new user submits his/her details the website is updated automatically.
This record will be useful for other users instantly.
Control: The complete control of the project is under the hands of authorized person who
has the password to access this project and illegal access is not supposed to deal with. All the
control is under the administrator.
Security: Security is the main criteria for the proposed system. Since illegal access may
corrupt the database. So security has to be given in this project.

Project on Online Hotel Management System 7


System Analysis

 EXISTING SYSTEM:
System Analysis is a detailed study of the various operations performed by a system
and their relationships within and outside of the system. Here the key question is- what
all problems exist in the present system? What must be done to solve the problem?
Analysis begins when a user or manager begins a study of the program using existing
system. During analysis, data collected on the various files, decision points and
transactions handled by the present system. The commonly used tools in the system are
Data Flow Diagram, etc. Training, experience and common sense are required for
collection of relevant information needed to develop the system. The success of the
system depends largely on how clearly the problem is defined, thoroughly investigated
and properly carried out through the choice of solution. A good analysis model should
provide not only the mechanisms of problem understanding but also the frame work of
the solution. Thus it should be studied thoroughly by collecting data about the system.
Then the proposed system should be analyzed thoroughly in accordance with the needs.
System analysis can be categorized into five parts.
• System planning and initial investigation
• Information Gathering
• Applying analysis tools for structured analysis
• Feasibility study
• Cost/ Benefit analysis.
In our existing system all the transaction of rooms are done manually, So taking
more time for a transaction like checking in a room advantage is that to preparing the list
of rooms checked in and the available rooms in the hotel will take more time, currently it
is doing as a one day process for verifying all records. So after conducting the feasibility
study we decided to make the manual Hotel Management System to be computerized.

 PROPOSED SYSTEM:
Proposed system is an automated Hotel Management System. Through our software
user can add customer, add rooms, search customers, search rooms, update
information, edit information, check in and check out rooms in quick time. Our proposed
system has the following advantages:
• User friendly interface
• Fast access to database
• Less error
• Search facility
• Look and Feel Environment
• Quick transaction

Project on Online Hotel Management System 8


All the manual difficulties in managing the Library have been rectified by
implementing computerization.

Feasibility Study
Whatever we think need not be feasible. It is wise to think about the feasibility of any
problem we undertake. Feasibility is the study of impact, which happens in the
organization by the development of a system. The impact can be either positive or negative.
When the positives nominate the negatives, then the system is considered feasible. Here the
feasibility study can be performed in two ways such as:
• Technical feasibility
• Economical Feasibility

 TECHNICAL FEASIBILITY:
We can strongly says that it is technically feasible, since there will not be much
difficulty in getting required resources for the development and maintaining the
system as well. All the resources needed for the development of the software as well
as the maintenance of the same is available in the organization here we are utilizing
the resources which are available already.

 ECHONOMICAL FEASIBILITY:
Development of this application is highly economically feasible. The organization
needed not spend much more one for the development of the system already available.
The only thing is to be done is making an environment for the development with
an effective supervision. If we are doing so, we can attain the maximum usability
of the corresponding resources .Even after the development , the organization will not be
in a condition to invest more in the organization .
Therefore, the system is economically feasible.

Project on Online Hotel Management System 9


System requirements
This management system can be used in windows 98, Windows2000, Windows XP and
Windows NT, supported for other platform such as Applet, Macintosh and UNIX.
The system must be running Windows 98, Windows 98 or Windows NT4.0 operating
system and must meet the following hardware requirements.
• For Windows 95 based computers , a 486 / 66 MHz or higher processor with
8MB
• For Windows 98 based computers , a 500/88MHz or higher processor with 32 Mb
of RAM
• For Windows NT based computers , a 488 / 66 MHz or higher processor with 16
MB of RAM
• For Windows 200 based computers , a 700/850 MHz or higher processor with 512
MB of Ram

Project Category
This Project is coupled with material on how to use the various tool, sub sets available in
JSP, SERVLETS AND ORACLE 10g.
The need of today’s software development is competence in a GUI based front-end tool,
which can connect to Relational Database engines. This gives the programmer the
opportunity to develop client server based commercial applications.
These applications give users the power and ease of a GUI with the multi user
capabilities of or WinNT based RDBMS engines such as ORACLE 10g.

Project on Online Hotel Management System 10


All the important coding techniques used by programmers, in OOPS based coding is
brought out in full and in great detail.

System Study & Analysis

 PRINCIPLES OF SYSTEM ANALYSIS:


• Understand the problem before you begin to create the analysis model.
• Develop prototypes that enable a user to understand how human machine interaction
will occur.
• Record the origin of and the reason for every requirement.
• Use multiple views of requirements like building data, function and behavioral models.
• Work to eliminate ambiguity.

 ENTITY RELATIONSHIP DIAGRAM (ERD):


• Entity – Relationship Diagram: This depicts relationship between data objects. The
attribute of each data objects noted in the entity- relationship diagram can be described
using a data object description. Data flow diagram serves two purposes:
1. To provide an indication of how data are transformed as they move through
the system.
2. To depict the functions that transformation the data flow.
• Data Objects: A data object is a representation of almost any composite information
that must be understood by the software. By composite information, we mean
something that has a number of different properties or attributes. A data object
encapsulates data only there is no reference within a data object to operations that act
on the data.
• Attributes: Attributes define the properties of a data object and take on one of three
different characteristics. They can be used to: Name an instance of data object.
Describe the instance.
• Make reference to another instance in other table.
• Relationships: Data objects are connected to one another in a variety of different ways.
We can define a set of object relationship pairs that define the relevant relationships.

 CARDINALITY AND MODALITY:


• Cardinality: The data model must be capable of representing the number of
occurrences of objects in a given relationship. The cardinality of an object relationship
pair is
 One-T0-One (1:1): An occurrence of object ‘A’ can relate to one and only
one occurrence of object ‘B’ and vice versa.

Project on Online Hotel Management System 11


 One-To-Many (1:N): One occurrence of object ‘A’ can relate to one or may
occurrences of object ‘B’ but an occurrence of object ‘B’ can relate to only one
occurrence of object ‘A’.
 Many-To-Many (M: N): An occurrences of ‘B’ and an occurrence of ‘B’ can
relate to one or many occurrence of ‘A’.
• Modality: The modality of a relationship is zero if there is no explicit need for the
relationship to occur or the relationship is optional. The Modality is one if the
occurrence of the relationship is mandatory.
The object relationship pair can be represented graphically using the Entity Relationship
Diagrams. A set of primary components are identified for the Entity Relationship Diagram,
1. Attributes,
2. Relationships and
3. Various Type Indicators.
The primary purpose of the Entity Relationship Diagram is to represent data objects and their
relationships.

 ENTITY RELATIONSHIP DIAGRAM (ERD) FOR HOTEL MANAGEMENT


SYSTEM :

Project on Online Hotel Management System 12


 DATA FLOW DIAGRAM (DFD) FOR CHAKE IN OF A CUSTOMER :

Project on Online Hotel Management System 13


 DATA FLOW DIAGRAM (DFD) FOR CHAKE OUT OF A CUSTOMER :

Project on Online Hotel Management System 14


 DATA MODELING:
Data modeling defines primary data objects, composition of each data object, and
attributes of the object, relationships between each object and other objects and between
objects and the processes.

• Normal user password table :


Fields Type
password varchar2
userid varchar2
• Power user password table :
Fields Type
password varchar2
userid varchar2
• Administrator password table :
Fields Type
password varchar2
• Room details table :
Fields Type
room_no varchar2
floor varchar2
ac varchar2
bed varchar2
• Room available table :
Fields Type
room_no varchar2
floor varchar2
status varchar2
• Customer details table :
Fields Type
mem_id varchar2
mem_name varchar2
mem_sex varchar2
mem_agegroup varchar2
mem_address varchar2
mem_contact varchar2
mem_emailid varchar2
• Booking table :
Fields Type

Project on Online Hotel Management System 15


sr_no varchar2
mem_name varchar2
mem_id varchar2
room_no varchar2
from varchar2
to varchar2
status varchar2
• Booking table :

Fields Type
sr_no varchar2
mem_name varchar2
mem_id varchar2
room_no varchar2
checkin_date varchar2
checkout_date varchar2
status varchar2

Project on Online Hotel Management System 16


Function Details
The basic objective of Hotel Management System is to generalize and simplify the monthly
or day to day activities of Hotel like Room activities, Check in of New Customer, Check out
of customer, assigning a room according to customer requirement, and finally compute the
bill etc. which has to be performed repeatedly on regular basis. To provide efficient, fast,
reliable and user-friendly system is the basic motto behind this exercise.
Let us now discuss how different functions handle the structure and data files:
• Password: In this module, this website is for multiple users. If a User enters a password
and the software checks its validity. If the password is valid then options will be available.
Otherwise error message will be displayed. There is an options for log out, login, new users
sign in. The Administrator can also update changes in the site after login.
• Creating new Entity (Hotel, Room, Customers, Members etc.): This is used to add a
new employee details, delete entity details and view the details. In that screen, the
automatic item is created. In this function, whenever a new entity is required to be added
the corresponding forms are opened and the database is manipulated to check whether the
data is already existing or not. If it already exists, then it prompts that “Entry already
existing” and if not than the data is entered with the various validation checks.
• Function NEW_ROOM(): This is the function used to open a new room for a customer so
that he/she can assign a separate room. In that screen, the automatic room number is
created. After opening a new room for the customer, finally a room is assigned to a
customer and the room records are appended in the data file.
• Function CHECKIN_CUSTOMER(): This function is used to admit a customer in our
Hotel after entering his all personal details like Name, Address, Phone, Sex and then he/she
is assigned a room from NEW_ROOM() function.
• Function CHECKOUT_CUSTOMER(): This function is used to checkout the customer
details from database. When the user inputs his room number, the same room number will
be checked in the database, if the room number is matched in the database, then the
customer will be check-out from the database and transferred the record of the checkout to
another table of database so that the Hotel Management has the record of customers who
have check-out to fulfill his legal liabilities.
• Function DISPLAY_RECORD(): This function is used to display all the transaction
including the customer name, address, phone, bed number, and doctor assigned to him/her
in the screen. This is a global report to display all the transaction records in the screen.
• Validation of Data Entered by the User & Error Handling: In this function, the validity
of data entered by the user during the various business processes is checked through
various validation checks. For example, there should not be any characters entered in the
numeric fields, likewise if there is any error occurs than it should handle that particular
error and give the required messages.
• Searching: In this function, room, customer well as members can search details from the
database according to their authentications.

Project on Online Hotel Management System 17


• Report Generation: In this function reports are generated for the following entities:
o Customer Details.
o Requirements of the Customers
o Rooms Details
o Check in Reports
o Booking Details
o Online Bookings
o Checkout Details

Project on Online Hotel Management System 18


Some of coding

 AUTHENTICATION TO CREATE POWER USER (JSP):


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-
8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
<style type="text/css">
<!--
body {
background-color: #D5D5FF;
}
.style7 {
font-size: small;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: 900;
color: #FFFFFF;
background-color:#450099;
letter-spacing: normal;
text-align: center;
vertical-align: baseline;
word-spacing: normal;
}
.style14 {font-size: large;
}
.style16 {background-color:#7171FF;
font-size: medium;
color: #000099;
}
.style19 {font-size: large; color: #000099; }
.style20 {color: #FFFFFF}
-->
</style>
<script type="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0


var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;

Project on Online Hotel Management System 19


i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+
+].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01


var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!
x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0


var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn =
img.src;
if ((nbArr = document[grpName]) == null) nbArr =
document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img =
MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img =
MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] :
((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ?
img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src =
img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img =

Project on Online Hotel Management System 20


MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>

<body onload="MM_preloadImages('contact2.gif','dwn
bttn.gif','home2.gif','mmbr2.gif','glry2.gif','book2.gif','Copy
of small (7).JPG','Copy of small (6).jpg','Copy of small
(9).jpg','Copy of small (11).jpg','Copy of small (12).jpg','Copy
of small (5).JPG','Copy of small (4).jpg','Copy of small
(3).JPG','Copy of small (1).jpg','Copy of small (10).jpg','Copy
of small (8).jpg')">
<div align="center">
<p class="style7"><img src="title.gif" width="933" height="117"
/></p>
</div>
<p align="right" class="style16">
<span class="style14 style16"><span class="style20">Home
&nbsp;&nbsp;|&nbsp;&nbsp; Members area &nbsp;&nbsp;|&nbsp;&nbsp;
Gallary &nbsp;&nbsp;|&nbsp;&nbsp; Booking &nbsp;&nbsp;|
&nbsp;&nbsp; Help &nbsp;&nbsp;|&nbsp;&nbsp; Credit &nbsp;&nbsp;|
&nbsp;&nbsp; Contact us &nbsp;&nbsp;|&nbsp;&nbsp; Feedback
&nbsp;&nbsp;</span></span></p>
<p class="style14">&nbsp;</p>
<p class="style14">&nbsp;</p>
<form id="form1" name="form1" method="post" action="">
<label></label>
<p align="left">AUTHENTICATION TO CREATE POWER USER: </p>
<p align="center">Enter Administrator Password:</p>
<p align="center">
<input type="text" name="textfield" />
<br />
<br />
<input name="Login" type="submit" id="Login" value="Next" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;
<input name="reset" type="reset" id="reset" value="Reset" />
</p>
</form>
<p class="style14">
<marquee height="40" diection="right" behavior="alternate">
</marquee>
</p>
<p align="center" class="style19">&nbsp;</p>
<p align="center"><img src="_3.gif" width="349" height="36"
/></p>
</body>

Project on Online Hotel Management System 21


</html>

 BOOKING (JSP):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-
8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<style type="text/css">
<!--
body {
background-color: #D5D5FF;
}
.style7 {
font-size: small;
font-family: Geneva, Arial, Helvetica, sans-serif;
font-weight: 900;
color: #FFFFFF;
background-color:#450099;
letter-spacing: normal;
text-align: center;
vertical-align: baseline;
word-spacing: normal;
}
.style14 {font-size: large;
}
.style16 {background-color:#7171FF;
font-size: medium;
color: #000099;
}
.style18 {
font-size: medium;
color: #FFFFFF;
}
.style19 {font-size: large; color: #000099; }
-->
</style>
<script type="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0


var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0;

Project on Online Hotel Management System 22


i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j+
+].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01


var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document;
n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!
x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0


var i,img,nbArr,args=MM_nbGroup.arguments;
if (event == "init" && args.length > 2) {
if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
img.MM_init = true; img.MM_up = args[3]; img.MM_dn =
img.src;
if ((nbArr = document[grpName]) == null) nbArr =
document[grpName] = new Array();
nbArr[nbArr.length] = img;
for (i=4; i < args.length-1; i+=2) if ((img =
MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = args[i+1];
nbArr[nbArr.length] = img;
} }
} else if (event == "over") {
document.MM_nbOver = nbArr = new Array();
for (i=1; i < args.length-1; i+=3) if ((img =
MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = (img.MM_dn && args[i+2]) ? args[i+2] :
((args[i+1])? args[i+1] : img.MM_up);
nbArr[nbArr.length] = img;
}
} else if (event == "out" ) {
for (i=0; i < document.MM_nbOver.length; i++) {
img = document.MM_nbOver[i]; img.src = (img.MM_dn) ?
img.MM_dn : img.MM_up; }
} else if (event == "down") {
nbArr = document[grpName];
if (nbArr)
for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src =
img.MM_up; img.MM_dn = 0; }
document[grpName] = nbArr = new Array();
for (i=2; i < args.length-1; i+=2) if ((img =

Project on Online Hotel Management System 23


MM_findObj(args[i])) != null) {
if (!img.MM_up) img.MM_up = img.src;
img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
nbArr[nbArr.length] = img;
} }
}
//-->
</script>
</head>

<body onload="MM_preloadImages('contact2.gif','dwn
bttn.gif','home2.gif','mmbr2.gif','glry2.gif','book2.gif','Copy
of small (7).JPG','Copy of small (6).jpg','Copy of small
(9).jpg','Copy of small (11).jpg','Copy of small (12).jpg','Copy
of small (5).JPG','Copy of small (4).jpg','Copy of small
(3).JPG','Copy of small (1).jpg','Copy of small (10).jpg','Copy
of small (8).jpg')">
<div align="center">
<p class="style7"><img src="title.gif" width="933" height="117"
/></p>
</div>
<p align="right" class="style16">
<span class="style14 style16"><span class="style18
style17">Home &nbsp;&nbsp;|&nbsp;&nbsp; Members area
&nbsp;&nbsp;|&nbsp;&nbsp; Gallary &nbsp;&nbsp;|&nbsp;&nbsp;
Booking &nbsp;&nbsp;|&nbsp;&nbsp; Help &nbsp;&nbsp;|&nbsp;&nbsp;
Credit &nbsp;&nbsp;|&nbsp;&nbsp; Contact us &nbsp;&nbsp;|
&nbsp;&nbsp; Feedback &nbsp;&nbsp;</span></span></p>
<p class="style14">&nbsp;</p>
<p class="style14">&nbsp;</p>
<form id="form1" name="form1" method="post" action="">
<label></label>
<p>
<label>ENTER CUSTOMER DETAILS:<br />
<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Name
<input name="textfield" type="text" size="30" />
</label>
</p>
<p>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Address
<input name="textfield2" type="text" size="100" />
</label>
</p>
<p>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Phone no.
<input name="textfield3" type="text" size="20" />
</label>
</p>
<p>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Room no. </label>
<label>

Project on Online Hotel Management System 24


<select name="select">
</select>
</label>
</p>
<p>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Chake in date
<input type="text" name="textfield5" />
</label>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;Chake out date
<input type="text" name="textfield6" />
</label>
</p>
<p>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Comments
<textarea name="textarea"></textarea>
</label>
</p>
<p>
<label>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp
;&nbsp;
<input type="submit" name="Submit" value="Submit" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </label>
<label>
<input type="reset" name="Submit2" value="Reset" />
</label>
</p>
</form>
<p class="style14">
<marquee height="40" diection="right" behavior="alternate">
</marquee>
</p>
<p align="center" class="style19">Log out</p>
<p align="center"><img src="_3.gif" width="349" height="36"
/></p>
</body>
</html>

 VIEW ROOMS (SERVLET):


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package allservlets;

Project on Online Hotel Management System 25


import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import dbaseconnect.ConnectDbase;
import java.sql.*;

/**
*
* @author Admin1
*/
public class ViewAllBooks 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();

PreparedStatement ps1=null;
ResultSet rs1=null;
Connection con=null;

try {
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML
1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd\">\n");
out.write("<html
xmlns=\"http://www.w3.org/1999/xhtml\">\n");
out.write("<head>\n");
out.write("<meta http-equiv=\"Content-Type\"
content=\"text/html; charset=iso-8859-1\" />\n");
out.write("<!-- TemplateBeginEditable name=\"doctitle\"
-->\n");
out.write("<title>Untitled Document</title>\n");
out.write("<!-- TemplateEndEditable -->\n");
out.write("<!-- TemplateBeginEditable name=\"head\" --><!--
TemplateEndEditable -->\n");
out.write("<style type=\"text/css\">\n");

Project on Online Hotel Management System 26


out.write("<!--\n");
out.write("body {\n");
out.write("\tbackground-color: #D5D5FF;\n");
out.write("}\n");
out.write(".style7 {\n");
out.write("\tfont-size: small;\n");
out.write("\tfont-family: Geneva, Arial, Helvetica, sans-
serif;\n");
out.write("\tfont-weight: 900;\n");
out.write("\tcolor: #FFFFFF;\n");
out.write("\tbackground-color:#450099;\n");
out.write("\tletter-spacing: normal;\n");
out.write("\ttext-align: center;\n");
out.write("\tvertical-align: baseline;\n");
out.write("\tword-spacing: normal;\n");
out.write("}\n");
out.write(".style14 {font-size: large;\n");
out.write("}\n");
out.write(".style18 {\n");
out.write("\tfont-size: medium;\n");
out.write("\tcolor: #FFFFFF;\n");
out.write("}\n");
out.write(".style1 {font-family: Arial, Helvetica, sans-
serif}\n");
out.write(".style20 {font-family: Arial, Helvetica, sans-
serif; font-size: medium; }\n");
out.write("-->\n");
out.write("</style>\n");
out.write("</head>\n");
out.write("\n");
out.write("<body
onload=\"MM_preloadImages('contact2.gif','dwn
bttn.gif','home2.gif','mmbr2.gif','glry2.gif','book2.gif','Copy
of small (7).JPG','Copy of small (6).jpg','Copy of small
(9).jpg','Copy of small (11).jpg','Copy of small (12).jpg','Copy
of small (5).JPG','Copy of small (4).jpg','Copy of small
(3).JPG','Copy of small (1).jpg','Copy of small (10).jpg','Copy
of small (8).jpg')\">\n");
out.write("<div align=\"center\">\n");
out.write(" <p class=\"style7\"><img src=\"title.gif\"
width=\"933\" height=\"117\" /></p>\n");
out.write("</div>\n");
out.write("<style type=\"text/css\">\n");
out.write(" <!-- .style18 {\n");
out.write("\tfont-size: medium;\n");
out.write("\tbackground-color: #FFFFFF;\n");
out.write(" } --> </style>\n");
out.write("<p align=\"right\" class=\"style18\">\n");
out.write(" <span class=\"style14\"><span
class=\"style18\"><font color=#0000FF ><a
href=\"index.jsp\">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"login1.jsp\">Members area</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a

Project on Online Hotel Management System 27


href=\"2galary.jsp\"> Gallary &nbsp;&nbsp;</a>|&nbsp;&nbsp;<a
href=\"2booking2.jsp\"> Booking</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2help.jsp\"> Help</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2credit.jsp\"> Credit</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2contactus.jsp\"> Contact us </a>&nbsp;&nbsp;|
&nbsp;&nbsp;<a href=\"2feedback.jsp\"> Feedback</a>
&nbsp;&nbsp;</span></span></font></p>\n");
out.write("<p class=\"style1\"
align=\"justify\">&nbsp;</p>\n");
out.write("<p class=\"style14\">\n");

out.write("</p>\n");
out.print("<p class=\"style2\" align=\"justify\"><font
color=\"#000000\">Room List</font></p>\r\n");
out.print("<table width=\"1020\" height=\"86\"
border=\"1\">\r\n");
out.print(" <tr>\r\n");
out.print(" \r\n");
out.print(" <th scope=\"col\"> <font face=\"arial\">Room
No</th>\r\n");
out.print(" <th scope=\"col\"><font face=\"arial\">Floor
No </th>\r\n");
out.print(" <th scope=\"col\"><font
face=\"arial\">AC</th>\r\n");
out.print(" <th scope=\"col\"><font face=\"arial\">Room
Type</th>\r\n");
out.print(" <th scope=\"col\"><font
face=\"arial\">Status</th>\r\n");

out.print(" </tr>\r\n");

con=ConnectDbase.getConnection();
ps1=con.prepareStatement("select * from
ROOM_DETAILS,ROOM_AVAILABLE where
ROOM_DETAILS.ROOM_NO=ROOM_AVAILABLE.ROOM_NO");

rs1=ps1.executeQuery();
while(rs1.next())
{
String id= rs1.getString(1);
String name=rs1.getString(2);
String author= rs1.getString(3);
String publisher=rs1.getString(4);
String group=rs1.getString(7);

out.print(" <tr>\r\n");
out.print(" <td align=\"center\"><font
face=\"arial\">"+id+"</td>\r\n");
out.print(" <td align=\"center\"><font
face=\"arial\">"+name+"</td>\r\n");

Project on Online Hotel Management System 28


out.print(" <td align=\"center\"><font
face=\"arial\">"+author+"</td>\r\n");
out.print(" <td align=\"center\"><font
face=\"arial\">"+publisher+"</td>\r\n");
out.print(" <td align=\"center\"><font
face=\"arial\">"+group+"</td>\r\n");

out.print(" </tr>\r\n");
out.print(" \r\n");
}
out.print("</table><br><br><br><br><br><br>\r\n");
out.write("<p align=\"center\"><img src=\"_3.gif\"
width=\"349\" height=\"36\" /></p>\n");
out.write("</body>\n");
out.write("\n");
out.write("\n");
out.write("</html>");
}
catch(Exception e)
{
out.println("<html>");
out.println("<head>");
out.println("<title>Exception
occured</title>");
out.println("</head>");
out.println("<body>");
out.println("<font color=\"#CC0000\"
size=\"4\">Exception occured</font><br>");
out.println(e.getMessage()
+"<br><br><br>");

out.println("<font color=\"#000000\"
face=\"Arial\" size=\"3\"><a
href=\"index.jsp\">home</a></font><br>");
out.println("</body>");
out.println("</html>");

}
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

Project on Online Hotel Management System 29


* @throws IOException if an I/O error occurs
*/
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
* @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 {
processRequest(request, response);
}

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

 SEARCH ROOMS (SERVLET):


/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package allservlets;

import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.sql.*;
import dbaseconnect.ConnectDbase;
/**

Project on Online Hotel Management System 30


*
* @author Admin1
*/
public class SearchBook3 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();
ServletContext temp=getServletContext();
PreparedStatement ps1=null;
ResultSet rs1=null;
Connection con=null;

String s=null;
String s1=(String) temp.getAttribute("temp1");

try {
out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML
1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd\">\n");
out.write("<html
xmlns=\"http://www.w3.org/1999/xhtml\">\n");
out.write("<head>\n");
out.write("<meta http-equiv=\"Content-Type\"
content=\"text/html; charset=iso-8859-1\" />\n");
out.write("<!-- TemplateBeginEditable name=\"doctitle\"
-->\n");
out.write("<title>Untitled Document</title>\n");
out.write("<!-- TemplateEndEditable -->\n");
out.write("<!-- TemplateBeginEditable name=\"head\" --><!--
TemplateEndEditable -->\n");
out.write("<style type=\"text/css\">\n");
out.write("<!--\n");
out.write("body {\n");
out.write("\tbackground-color: #D5D5FF;\n");
out.write("}\n");
out.write(".style7 {\n");
out.write("\tfont-size: small;\n");
out.write("\tfont-family: Geneva, Arial, Helvetica, sans-
serif;\n");

Project on Online Hotel Management System 31


out.write("\tfont-weight: 900;\n");
out.write("\tcolor: #FFFFFF;\n");
out.write("\tbackground-color:#450099;\n");
out.write("\tletter-spacing: normal;\n");
out.write("\ttext-align: center;\n");
out.write("\tvertical-align: baseline;\n");
out.write("\tword-spacing: normal;\n");
out.write("}\n");
out.write(".style14 {font-size: large;\n");
out.write("}\n");
out.write(".style18 {\n");
out.write("\tfont-size: medium;\n");
out.write("\tcolor: #FFFFFF;\n");
out.write("}\n");
out.write(".style1 {font-family: Arial, Helvetica, sans-
serif}\n");
out.write(".style20 {font-family: Arial, Helvetica, sans-
serif; font-size: medium; }\n");
out.write("-->\n");
out.write("</style>\n");
out.write("</head>\n");
out.write("\n");
out.write("<body
onload=\"MM_preloadImages('contact2.gif','dwn
bttn.gif','home2.gif','mmbr2.gif','glry2.gif','book2.gif','Copy
of small (7).JPG','Copy of small (6).jpg','Copy of small
(9).jpg','Copy of small (11).jpg','Copy of small (12).jpg','Copy
of small (5).JPG','Copy of small (4).jpg','Copy of small
(3).JPG','Copy of small (1).jpg','Copy of small (10).jpg','Copy
of small (8).jpg')\">\n");
out.write("<div align=\"center\">\n");
out.write(" <p class=\"style7\"><img src=\"title.gif\"
width=\"933\" height=\"117\" /></p>\n");
out.write("</div>\n");
out.write("<style type=\"text/css\">\n");
out.write(" <!-- .style18 {\n");
out.write("\tfont-size: medium;\n");
out.write("\tbackground-color: #FFFFFF;\n");
out.write(" } --> </style>\n");
out.write("<p align=\"right\" class=\"style18\">\n");
out.write(" <span class=\"style14\"><span
class=\"style18\"><font color=#0000FF ><a
href=\"index.jsp\">Home</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"login1.jsp\">Members area</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2galary.jsp\"> Gallary &nbsp;&nbsp;</a>|&nbsp;&nbsp;<a
href=\"2booking2.jsp\"> Booking</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2help.jsp\"> Help</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2credit.jsp\"> Credit</a> &nbsp;&nbsp;|&nbsp;&nbsp;<a
href=\"2contactus.jsp\"> Contact us </a>&nbsp;&nbsp;|
&nbsp;&nbsp;<a href=\"2feedback.jsp\"> Feedback</a>
&nbsp;&nbsp;</span></span></font></p>\n");
out.write("<p class=\"style1\"

Project on Online Hotel Management System 32


align=\"justify\">&nbsp;</p>\n");

out.write("<p class=\"style2\" align=\"justify\">Search a


Room</p>&nbsp;<table border=\"0\" cellpadding=\"0\"
cellspacing=\"0\" style=\"border-collapse: collapse\"
bordercolor=\"#FFFFFF\" width=\"100%\" id=\"AutoNumber1\">\n");
out.write(" <tr>\n");
out.write(" <td width=\"41%\">\n");
out.write(" <p align=\"center\">\n");
out.write(" <img border=\"0\" src=\"images/images.jpg\"
width=\"225\" height=\"224\"></td>\n");
out.write(" <td width=\"59%\" bgcolor=\"#D5D5FF\">\n");
out.write("<form method=\"POST\"
action=\"SearchBook3\">\n");
out.write(" <p>\n");
out.write(" <font face=\"arial\" style=\"font-size: 11pt\"
>You can search&nbsp; a room using Room no, Floor no, AC/Non-Ac
and Room Type pr\n");
out.write(" Please select one of the following&nbsp;&nbsp;
options and click next..</font></p>\n");
out.write(" <p></p>\n");
out.write(" <p class=\"style1\" align=\"justify\">\n");
out.write(" <span style=\"font-size: 10pt\">\n");
out.write("\n");
out.write(" &nbsp;<input type=\"radio\" value=\"by_id\"
name=\"R1\" checked>By Room No&nbsp;&nbsp;&nbsp; </span>\n");
out.write(" <font style=\"font-size: 10pt\">\n");
out.write(" <input type=\"radio\" value=\"by_name\"
name=\"R1\">By Floor No&nbsp;&nbsp;&nbsp; </font>\n");
out.write(" <span style=\"font-size: 10pt\">\n");
out.write(" <input type=\"radio\" value=\"by_author\"
name=\"R1\">AC/Non-AC&nbsp;&nbsp;&nbsp;\n");
out.write(" </span><font style=\"font-size: 10pt\">\n");
out.write("\n");
out.write(" <input type=\"radio\" value=\"by_publisher\"
name=\"R1\">By Room type&nbsp;&nbsp;&nbsp;\n");
out.write(" <p class=\"style1\" align=\"justify\">\n");
out.write(" &nbsp;&nbsp;\n");
out.write(" <input type=\"submit\" value=\"Next&gt;&gt;\"
name=\"B1\"></p>\n");
out.write("</form>&nbsp;<p><br>\n");
s="abc";
temp.setAttribute("temp1", s);

if(s1!="1")
{
out.write("</p>\n");
out.write("<form method=\"POST\"
action=\"ViewABook3\">\n");
out.write("<p>\n");
out.write("<font face=\"arial\" size=\"2\">&nbsp;Search

Project on Online Hotel Management System 33


List:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<select name=\"list\">\n");

String radio=request.getParameter("R1");
if (radio.equals("by_name"))
{
out.print("<option>1</option>");
out.print("<option>2</option>");
out.print("<option>3</option>");
}
if (radio.equals("by_author"))
{
out.print("<option>Ac</option>");
out.print("<option>NonAc</option>");
}
if (radio.equals("by_publisher"))
{
out.print("<option>Double</option>");
out.print("<option>Single</option>");
}
con=ConnectDbase.getConnection();
ps1=con.prepareStatement("select * from
ROOM_DETAILS");
rs1=ps1.executeQuery();
while(rs1.next())
{
String id= rs1.getString(1);

temp.setAttribute("select", radio);
if (radio.equals("by_id"))
out.print("<option>"+id+"</option>");

}
out.print("</select></p> <p class=\"style1\"
align=\"justify\">\r\n");
out.print("&nbsp;&nbsp;&nbsp;<input type=\"submit\"
value=\"View Details\" name=\"B1\"></p>\r\n");
out.print("</form></tr>\r\n");
}

/*out.print("<p class=\"style1\"
align=\"justify\">&nbsp;</p>\r\n");
out.print("<p class=\"style1\" align=\"justify\"><font
size=\"2\">&nbsp;&nbsp;&nbsp; <a href=\"Book
List.jsp\">Back</a></font></p>\r\n");
out.print("<p class=\"style1\"
align=\"justify\">&nbsp;&nbsp;&nbsp;&nbsp; <font face=\"Arial
Narrow\" size=\"2\">Book
List&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
href=\"help.jsp\">Help</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp; |

Project on Online Hotel Management System 34


&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
href=\"credits.jsp\">Credits</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb
sp;&nbsp;&nbsp;&nbsp; |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a
href=\"feedback.jsp\">Feedback</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;&nbsp;&nbsp; |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href=\"contact us.jsp\"> Contact
Us</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\r\n"
);
out.print(" |
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href=\"adminlogin.jsp\"> Administrator LogIn</a></font></p>");*/
}

catch(Exception e)
{
out.println("<html>");
out.println("<head>");
out.println("<title>Exception
occured</title>");
out.println("</head>");
out.println("<body>");
out.println("<font color=\"#CC0000\"
size=\"4\">Exception occured</font><br>");
out.println(e.getMessage()
+"<br><br><br>");

out.println("<font color=\"#000000\"
face=\"Arial\" size=\"3\"><a
href=\"index.jsp\">home</a></font><br>");
out.println("</body>");
out.println("</html>");

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
*/
protected void doGet(HttpServletRequest request,

Project on Online Hotel Management System 35


HttpServletResponse response)
throws ServletException, IOException {
processRequest(request, response);
}

/**
* Handles the HTTP <code>POST</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
*/
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
*/
public String getServletInfo() {
return "Short description";
}// </editor-fold>

Project on Online Hotel Management System 36


Sceenshots

 HOME :

Project on Online Hotel Management System 37


 LOG IN :

Project on Online Hotel Management System 38


 GALLARY :

Project on Online Hotel Management System 39


 SEARCH ROOMS :

Project on Online Hotel Management System 40


 VIEW ROOMS :

Project on Online Hotel Management System 41


 FEEDBACK :

Project on Online Hotel Management System 42


Scope of Future Application
This project can be used in the hotel after adding some more useful modules in the
project for which hotel are providing services.
Utmost care and back-up procedures must be established to ensure 100% successful
implementation of the computerized hotel system. In case of system failure, the organization
should be in a position to process the transaction with another organization or if the worst
comes to the worst, it should be in a position to complete it manually.

Conclusion
This project is designed to meet the requirements of Online Hotel Management. It has
been developed in JSP, Servlets keeping in mind the specifications of the system. For
designing the system we have used simple data flow diagrams.
Overall the project teaches us the essential skills like:
• Using system analysis and design techniques like data flow diagram in designing the
system.
• Understanding the database handling and query processing.

Bibliography

 BOOKS :
 Basic Web Designing using HTML & Java (HCL CDC)
 The complete reference java (Mcgrawhill, Hervert Schildth, Reprint 2008)
 Blackbook for servlet & JSP

 WEBSITES :
 http://www.google.co.in/imghp

Project on Online Hotel Management System 43


Project on Online Hotel Management System 44

Das könnte Ihnen auch gefallen