Beruflich Dokumente
Kultur Dokumente
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
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
Gangotri Chanda
Introduction
Objectives
Advantage
System Analyses
Feasibility Study
System Requirements
Project category
Data modeling
Function details
Some of coding
Screenshots
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
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
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.
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
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 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.
Fields Type
sr_no varchar2
mem_name varchar2
mem_id varchar2
room_no varchar2
checkin_date varchar2
checkout_date varchar2
status varchar2
<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
| Members area |
Gallary | Booking |
Help | Credit |
Contact us | Feedback
</span></span></p>
<p class="style14"> </p>
<p class="style14"> </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" />
&nb
sp;
<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"> </p>
<p align="center"><img src="_3.gif" width="349" height="36"
/></p>
</body>
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">
<!--
<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 | Members area
| Gallary |
Booking | Help |
Credit | Contact us |
Feedback </span></span></p>
<p class="style14"> </p>
<p class="style14"> </p>
<form id="form1" name="form1" method="post" action="">
<label></label>
<p>
<label>ENTER CUSTOMER DETAILS:<br />
<br />
Name
<input name="textfield" type="text" size="30" />
</label>
</p>
<p>
<label> Address
<input name="textfield2" type="text" size="100" />
</label>
</p>
<p>
<label> Phone no.
<input name="textfield3" type="text" size="20" />
</label>
</p>
<p>
<label> Room no. </label>
<label>
package allservlets;
/**
*
* @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");
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");
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();
}
/**
* 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>
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;
/**
/**
* 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");
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\"> Search
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(" <input type=\"submit\"
value=\"View Details\" name=\"B1\"></p>\r\n");
out.print("</form></tr>\r\n");
}
/*out.print("<p class=\"style1\"
align=\"justify\"> </p>\r\n");
out.print("<p class=\"style1\" align=\"justify\"><font
size=\"2\"> <a href=\"Book
List.jsp\">Back</a></font></p>\r\n");
out.print("<p class=\"style1\"
align=\"justify\"> <font face=\"Arial
Narrow\" size=\"2\">Book
List |
<a
href=\"help.jsp\">Help</a> &nb
sp; |
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();
}
}
/**
* 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>
HOME :
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