This sample demonstrates JavaServer Pages technology using the
Hotel Reservation System. The JSP's acts as view, which interacts
with the user. The core business logic in this sample is held
in the HotelBean, which process data in the database.
Software Requirements
List the softwares required for configuring and running this
sample application.
Step 6: Open your favorite browser and access
the sample, using the following url.
http://<host_name>:<port>/Hrs/MainPage.jsp
where, <host_name> is the machine on which OC4J is running
and <port> is Port to which the OC4J server listens to HTTP requests.
Default HTTP Listening port is 8888.
For example,
http://demo.oracle.com:8888/Hrs/MainPage.jsp
Sample Application Files
This section will provide a tabular listing of the sample
application files, along with their respective directory locations and a description
of what they do in the overall scheme of the application.
Directory
File
Description
Hrs
build.xml
This XML file is used by ANT to create the application
ear file
Hrs.jws
JDeveloper WorkSpace File
Hrs.jpr
JDeveloper Project File
Hrs/src/oracle/otnsamples/cookbook/Hrs
HeaderBean.java
This bean displays header for all the web pages.
HotelBean.java
This bean contains the business logic for HRS.
Hrs/src/web
AddNew.jsp
This JSP is used to add new hotels into the system
BookingOptions.jsp
This JSP displays hotels and options to Reserve
and Cancel bookings
ErrorHandler.jsp
This JSP handles the JSP runtime errors.
HotelBookingsView.jsp
This JSP displays HTML form for the user to reserve/cancel
hotel bookings
HotelInfo.jsp
This JSP displays Hotel Information and the Room Availability
Information
HotelUpdate.jsp
This JSP allows user to update Hotel Information
HrsStatic.jsp
This JSP is included in all the JSP. It contains bean
declarations.
InfoOptions.jsp
This JSP displays options to view Hotel Details and Hotel
Room Availability Details
MainPage.jsp
This JSP is the main page for the Hotel Reservation System
UpdateOptions.jsp
This JSP display options to update Room rates, Room availability
and To Add new room type.
images
This directory contains Hotel Reservation System Logo
Image
WEB-INF
This directory contains web.xml
Hrs
config
This directory contains application.xml
Hrs/docs
Readme.html
This file. It contains description about the sample and
steps to deploy and run the sample.
Please enter your comments about this sample application
here.