Cloud Based Train Ticketing System-Report
Cloud Based Train Ticketing System-Report
Cloud Based Train Ticketing System-Report
Submitted by:
Ashok Nath, 171204
Richa Mishra,171231
Pooja Bajagain,171222
Date:
02 Jan 2020
We would like to express our deepest appreciation to our department and entire college
for supporting us in completion of this project. Last but not least we express our
gratitude to our classmate who supported us and gave their views towards our work.
Special Thanks to Stack Overflow and GitHub; the platform that instructed us virtually
throughout the development of the project.
IV
ABSTRACT
Cloud Based Train Ticketing System is cloud-based application for ticket reservation
and validation using web network. This project will help to overcome one of the major
challenges in the current ticketing facility of booking train tickets by standing in the
queue for very long period of time. This will also help users to book tickets for their
journey, search train between two stations and gets details of the particular schedules
including their fare details. The user can use this system by registering on this
application, a valid login user name and password must be required to defend from
frauds.
The technology to build this system are Java/Servlet, JSP as a backend programming
system. The user interface of this application is designed using CSS which is a language
used for describing the presentation of a document written in markup language like
HTML. Data of users is stored in the MySQL database.
The cloud server allows for handling a larger number of users using efficient computing
power which will save the users valuable time. Hence, this project will help users to
reserve their seats, choose the type of coach they wish to travel in, travelling date and
time selection and payment mode, according to their choice at any time and from
anywhere using this system.
II
LIST OF ABBREVIATIONS
Fig Figure
IP Internet Protocol
Mac Macintosh
GB Gigahertz
III
TABLE OF FIGURES
IV
TABLE OF CONTENTS
2 INTRODUCTION ............................................................................................................... - 1 -
1.1 PROBLEM STATEMENT ........................................................................................................... - 1 -
1.2 PROJECT OVERVIEW .............................................................................................................. - 1 -
1.3 PROJECT AIM AND OBJECTIVES .............................................................................................. - 2 -
2.1 SCOPE AND LIMITATION ...................................................................................................... - 2 -
2.1.1 Scope ............................................................................................................................ - 2 -
2.1.2 Limitations.................................................................................................................... - 2 -
2.2 SIGNIFICANCE OF STUDY ..................................................................................................... - 3 -
3 METHODOLOGY.............................................................................................................. - 4 -
2.1 SOFTWARE DEVELOPMENT LIFE CYCLE:................................................................... - 4 -
3.1 REQUIREMENT DETERMINATION .......................................................................................... - 5 -
3.2 REQUIREMENT ANALYSIS .................................................................................................... - 5 -
3.3 SYSTEM DESIGN ................................................................................................................. - 5 -
3.4 IMPLEMENTATION ............................................................................................................... - 5 -
3.5 TESTING AND VALIDATION .................................................................................................. - 5 -
3.6 TECHNOLOGY USED ............................................................................................................ - 5 -
3.7 MYSQL AS RELATIONAL DATABASE .................................................................................... - 6 -
3.8 REQUIRED TOOLS TO BE USED ............................................................................................. - 6 -
4 LITERATURE REVIEW.................................................................................................... - 6 -
4.1 INTRODUCTION ................................................................................................................... - 6 -
4.2 NEPAL RAILWAY CORPORATION ........................................................................................... - 7 -
4.3 COMPARISON OF CURRENT SYSTEM WITH PROPOSED SYSTEM .............................................. - 8 -
4.3.1 Description of The Current System ................................................................................ - 8 -
4.3.2 Description of The Proposed System.............................................................................. - 8 -
4.3.3 Architecture of The Proposed System ............................................................................. - 8 -
4.4 ONLINE BOOKING/RESERVATION. ........................................................................................ - 9 -
4.5 RESERVATION INFORMATION SYSTEMS ................................................................................. - 9 -
4.6 COMPONENTS USED IN RESERVATION INFORMATION SYSTEMS .............................................. - 9 -
4.6.1 Hardware...................................................................................................................... - 9 -
4.6.2 Software ..................................................................................................................... - 10 -
4.6.3 Data ........................................................................................................................... - 10 -
4.6.4 People ........................................................................................................................ - 10 -
4.6.5 Procedures.................................................................................................................. - 10 -
4.6.6 Database ..................................................................................................................... - 11 -
4.7 TYPES OF RESERVATIONS IN RESERVATION SYSTEM ............................................................ - 11 -
4.7.1 Guaranteed Reservation: ............................................................................................. - 11 -
4.7.2 Non-guaranteed Reservation ........................................................................................ - 11 -
5 SYSTEM ANALYSIS ........................................................................................................ - 12 -
5.1 ORAL INTERVIEWS ............................................................................................................ - 13 -
5.2 STUDY OF THE MANUAL SYSTEM ....................................................................................... - 13 -
6 REQUIREMENT ANALYSIS........................................................................................... - 13 -
6.1 FUNCTIONAL REQUIREMENTS............................................................................................ - 13 -
6.2 NON-FUNCTIONAL REQUIREMENTS .................................................................................... - 14 -
7 SYSTEM DESIGN ............................................................................................................ - 14 -
7.1 LOGICAL DESIGN .............................................................................................................. - 15 -
II
7.2 CONCEPTUAL DESIGN:....................................................................................................... - 15 -
7.3 PHYSICAL DESIGN ............................................................................................................. - 15 -
7.4 USE CASE DIAGRAM ......................................................................................................... - 15 -
7.5 USE CASE: SYSTEM USERS ................................................................................................ - 16 -
7.6 ALGORITHMS FOR ALL ENTITIES ........................................................................................ - 16 -
7.6.1 User login algorithm ................................................................................................... - 16 -
7.6.2 Purchase ticket algorithm............................................................................................ - 17 -
7.6.3 3.Available algorithm:................................................................................................. - 17 -
7.6.4 Cancelation & rescheduling ........................................................................................ - 17 -
7.6.5 Admin algorithm ......................................................................................................... - 17 -
7.6.6 Create station ............................................................................................................. - 18 -
7.6.7 Create destination ....................................................................................................... - 18 -
7.7 FLOW CHARTS FOR ABOVE ALGORITHMS ........................................................................... - 18 -
7.7.1 Login for User and Administrator/ master ................................................................... - 18 -
7.7.2 Booking ...................................................................................................................... - 19 -
7.7.3 Purchase Ticket........................................................................................................... - 19 -
7.7.4 Delete Train ................................................................................................................ - 20 -
7.7.5 Create Train ............................................................................................................... - 21 -
7.8 DESIGN CLASS DIAGRAM .................................................................................................. - 22 -
7.9 DATABASE TABLE REPRESENTATION .................................................................................. - 22 -
7.9.1 Train table .................................................................................................................. - 22 -
7.9.2 Station table................................................................................................................ - 22 -
7.9.3 User table ................................................................................................................... - 23 -
7.9.4 Admin table ................................................................................................................ - 23 -
7.9.5 Destination table......................................................................................................... - 23 -
7.9.6 Booking table.............................................................................................................. - 24 -
8 IMPLEMENTATIONS ..................................................................................................... - 25 -
8.1 SYSTEM IMPLEMENTATIONS .............................................................................................. - 25 -
9 SYSTEM REQUIREMENT SPECIFICATIONS............................................................. - 26 -
9.1 SRS ................................................................................................................................. - 26 -
10 OUTPUT/RESULTS ..................................................................................................... - 27 -
11 TESTING ...................................................................................................................... - 28 -
11.1 SYSTEM TESTING .............................................................................................................. - 28 -
11.1.1 Unit Testing ............................................................................................................ - 28 -
11.1.2 System testing ......................................................................................................... - 28 -
11.1.3 User acceptance testing .......................................................................................... - 28 -
12 PROJECT TASK AND TIME SCHEDULE................................................................. - 29 -
12.1 PROJECT SCHEDULING ...................................................................................................... - 29 -
12.2 GANTT CHART .................................................................................................................. - 29 -
13 TEAM MEMBERS AND DIVIDED ROLES ............................................................... - 30 -
14 CONCLUSIONS ........................................................................................................... - 31 -
15 FUTURE UPDATES AND VERSIONING................................................................... - 32 -
15.1 INFORMATION PAGE FOR TRAINS AND ROUTES ................................................................... - 32 -
15.2 PNR CHECKING MECHANISM ............................................................................................ - 32 -
15.3 RAILWAY’S OWN PAYMENT SYSTEM .................................................................................. - 32 -
16 BIBLOGRAPHY AND REFERENCES ....................................................................... - 33 -
III
APPENDIX A ............................................................................................................................ - 34 -
LOGIN PAGE FOR USER AND ADMIN ........................................................................................... - 34 -
LOGIN RESPONSE IF USERNAME AND PASSWORD IS WRONG ........................................................ - 34 -
DASHBOARD SEEN BY USER ....................................................................................................... - 35 -
TICKET SEARCH BY USER .......................................................................................................... - 35 -
PAYMENT BY USER .................................................................................................................... - 36 -
ADMIN TRAIN REGISTRATION .................................................................................................... - 37 -
STATION REGISTRATION ............................................................................................................ - 37 -
DESTINATION AND FARE INPUT .................................................................................................. - 38 -
DATABASE SCHEMA DESIGN ...................................................................................................... - 38 -
BOOKING .................................................................................................................................. - 38 -
DESTINATIONS .......................................................................................................................... - 39 -
STATIONS .................................................................................................................................. - 39 -
TRAINS ..................................................................................................................................... - 39 -
USERS ...................................................................................................................................... - 39 -
APPENDIX B ............................................................................................................................ - 40 -
SOURCE CODE FOR USER ........................................................................................................... - 40 -
SOURCE CODE FOR USER ........................................................................................................... - 40 -
IV
1 INTRODUCTION
Railway transport is a means of conveyance of passengers and goods, by way of
wheeled vehicles running on rails (Wikipedia, 2019). It is also commonly referred to as
train transport. An electronic ticket (commonly abbreviated as e-ticket) is a digital
ticket. Electronic ticketing for railway public transport is usually referred to as travel
card or transit pass.
People keep on travelling to their destination via local train by booking their seats using
existing system. Under existing system passengers were only provided with a list of
trains between two stations and train number. The train number is only an available
information by they can take an action of choosing the train. They were not able to get
information on their arrival, departure and the route by which particular train will travel.
Passenger were only able to select the seat number and not provided with seat type they
want to select and they sometimes not create a familiar environment during their
journey. During making payments final validation and authorization was one by system
to identify the particular passengers to make deduction for their fare charge to make
final reservation.
The Train Ticket Reservation System will enable the customer to buy and pay for train
ticket, ask for information online easily and even cancel a reservation. Customer can
buy the ticket over the Internet, 24 hours a day, 7 days a week and the ticket can't be
lost, stolen or left behind. In addition, the online system lets the customers check the
availability of the
ticket, seat available and route before paying for the ticket. Furthermore, one can pay
in cash or pay directly from their bank account using their ATM (Credit card or Visa)
card details. Therefore, this project covers the design and implementation of a cloud-
based train reservation system.
-1-
1.3 Project Aim and Objectives
• Cloud based train ticketing system will help the passengers to book their tickets
for their journey, search train between two stations and get details of particular
train schedules including their fare details after they are successfully logged in .
• The main objective of this login module is to keep each passenger safe which will
not be allowed to make fraud and make their transactions secure.
• After making registration passengers have to enter the source and destination
station name and the system will able to provide the list of all available trains for
particular destination and their arrival and departure time and date.
• Upon selecting particular train, system will able to display the number of seats
available under particular coach type and coach will be either sleeper class, three
tier or two tiers.
• To book their tickets passengers have to select coach type and total number of
passengers and passengers will be provided with choice to select the seat numbers
as per their location they want.
• When all the selection work will be done passengers will be provided with total
fare charges and mode of payment.
1.1.2 Limitations
• The main limitation of this system is that it needs internet to register and book
ticket, in context of our country all people are not connected to the internet.
• If the ticket is to be cancelled, this system cannot return the payment on its own
system since the payment gateway is third party.
-2-
1.2 Significance of study
This system facilitates the passengers to enquire about the trains available on the basis
of source and destination, booking and cancellation of tickets, enquire about the status
of the booked ticket, etc. The aim of this study is to design and develop a system and
database maintaining the records of different trains, train status, and passengers. The
record of train includes its number, name, source, destination, and days on which it is
available, whereas record of train status includes dates for which tickets can be booked,
total number of seats available, and number of seats already booked. The database has
been developed and tested on the MySQL.
Cloud Based Ticket Ticketing System enables the customer to buy bus ticket, and ask
for information online easily. Furthermore, staff can sell train ticket using Cloud Based
Train Ticketing System after check bus ticket availability for the customer and print the
train ticket to the customer that queue up in the counter.
-3-
2 METHODOLOGY
Methodology describes the procedures, tools, techniques that were employed to achieve
the specific objectives of the train reservation system.
The development of the System was based on the model on Fig known as the waterfall
model. It involved requirement determination, requirement analysis, system design,
implementation, testing and validation. This approach below describes the sequence of
steps involved.
Requirement Determination
Requirement Analysis
System Design
Implementation
-4-
2.2 Requirement Determination
This is the initial step of the development of the train ticketing system. In this phase all
the requirements for development of project are collected and recorded in a well-
defined manner.
-5-
2.8 MySQL as Relational Database
Tools Use
3 LITERATURE REVIEW
3.1 Introduction
Today’s era has been the age of development of knowledge, skills, inventions as well
as different technologies which supports and enhance the standards of human’s livings.
-6-
Technologies with internet have their impacts in today’s digital world. This digitalized
world is changing day by day in order to facilitate many users with its numerous and
efficient potential in least amount of time. Transportation industries seems to appreciate
such rapid development. The Online Train Ticket Reservation System is an online application
that permits users check transport ticket accessibility, purchase transport ticket and pay the
transport ticket on the internet, which eradicate many problems faced by people during offline
ticketing system.
Where reservation of ticket is compulsory and this is very difficult as it consume much
time during the process of ticketing by visiting station when needed. But when this
ticketing system is made available in cloud it became more effective.
The government is preparing to revive the Nepal Railway Company (NRC) with a view
to start offering railways services in Nepal. The NRC used to earlier operate the
Janakpur-Jayanagar railways.
The Department of Railways (DoRW) has started the process to revive the government-
owned entity that had been inactive since 2014 and has already amended the existing
bylaws for the purpose.
According to him, the department has revised the existing laws and also the
organizational structure of Nepal Railway Company.
“Previously, there was only one railway system in the country, but now the scenario
has changed, with the government all set to build many railway services of different
nature across the country.”
-7-
The final test operation of the 35-kilometre-long Janakpur-Jayanagar railway was
conducted successfully in November last year, but due to the delay in the railway
carriage procurement process, the DoRW has yet to formally start operating the service.
The government has also started construction of the Bardibas-Nijgadh railway service,
which is about to be completed and will start operations from next year.
(A version of this article appears in print on April 26, 2019 of The Himalayan Times.)
The system is very simple in design and to implement. The system requires very low
system resources and the system will work in almost all configurations. It has got
following features:
-8-
Database Management System (RDBMS). It shows the components of the system, the
services they provide and the way they communicate to bring about the system
functionality.
The widespread use of Internet has led to the emergence of a variety of electronic
services as also known by e-services (e.g. e-ticket, e-payment, e-commerce, e-learning
etc.). Electronic ticket, or e-ticket, is an example of such category of e-services. Users
can get the e-tickets by purchasing them from a web server, or simply receiving from a
vendor, or from another user who previously acquired them. E-tickets can be stored in
desktop computers, smart phones or personal digital assistants for future use. For some
cases, E-tickets are non-transferable example airline e-ticket, it has to be validated to
prevent duplication, and ensure authenticity and integrity. A user first has to relay it to
server for validation before using it.
The cloud-based reservations system was one of the earliest changes to improve
efficiency in the transport industry. Transport Reservation System eventually evolved
into the computer reservations system (CRS). Train Reservations System (TRS) is a
computerized system used to store and retrieve information and conduct transactions
related to train travel.
These are complete Information Technology subsystems that make the reservation
Information System operational; they are compatible in nature and the failure of one
component may affect the operation of the others with in the system. They consist of
computer resources, data, people, and procedures used in the modern transport
companies.
3.6.1 Hardware
-9-
media i.e. all tangible objects on which data are recorded from sheets of paper to disks.
Others include keyboards, mouse, printers, scanners etc.
3.6.2 Software
3.6.3 Data
According to (Wikipedia,2019), Data (singular datum) are individual units
of information. Clearly no database system can exist without data. The basic factor
upon an organization processing and information needs are founded. Data elements and
relationships must be precisely defined and the definitions must be accurately recorded
in the data dictionary.
3.6.4 People
These are required for the operation of all information systems. They include end-users
and information system specialists. End-users are people who use an Information
System. The reservation information system specialists help in the development and
operation of information system. They include system analysts, programmers,
computer operators and others. People, are probably the component that most influence
the success or failure of information systems
3.6.5 Procedures
These are set of instruction about how to combine the above components in order to
process the information and generate the desired output. They consist of the way how
to log on to the RDBMS, use of different forms and manipulations throughout the
project.
- 10 -
3.6.6 Database
However, the ticket reservation system we intended will use the guaranteed
Reservation. Where reservations are guaranteed only when a customer make payment
on the site or at the train station.
- 11 -
4 SYSTEM ANALYSIS
It can be defined as a process of investigation of a real or planned system to determine
the function of the system, identify the problems of the system, analyzing and
synthesizing the various factors and determining a satisfactory solution. The purpose
of this analysis is for an analyst to look carefully into the manual system and automate
it into computerized system. This was carried out on the existing system. It helped to
show the weaknesses of the existing system. The researched various methods to collect
information about the current system as shown below.
- 12 -
4.1 Oral Interviews
These were carried out on some customers and staff of the Nepal Railway Corporation
(NRC). These were about how customers book/board the train, how customer data and
information is stored and how trips are scheduled and management is done.
Existing boarding and booking system formats were studied and some of the important
features were taken note of and were applied in the implementation of the cloud-based
ticketing system.
5 REQUIREMENT ANALYSIS
The primary goal of this phase was to create a detailed Functional Specification
defining the full set of system capabilities to be implemented.
It involved examination of the collected data. Models such as Data Flow Diagrams
(DFD) and Entity Relationship Diagrams (ERD‟s) were used to model individual
processes and data respectively. Here requirements were classified as functional and
non-functional requirements, the determination and analysis of requirements helped the
us to achieve the second objective.
The following requirements were captured for the intended use of the system.
- 13 -
• User account: The registered user can directly book /reserve the available seats of
train and if there is a new user he/she may register to sees the train details.
• Creation of new user account: When there is a new customer he/she should fill
the form containing field like Username, First name, Last name, phone no. and
Password, Address and Email.
• Checking Availability: To check the available train the user should choose the
origin station and destination station, as well as date of journey.
• Reservation of Seat: After providing all information the system will ask user for
confirmation. After confirming the information, the seats get reserved.
• Canceling of Ticket: To cancel reservation the customer should log into his/her
account and can simply cancel the reservation.
6 SYSTEM DESIGN
The ticketing system is designed with the necessary tools and all the coding and
designing task is completed in this step. This shows the application of system theory to
product development by defining the architecture, components, modules, interfaces and
data for a system to satisfy specified requirements. The goal of design phase was not
just to produce a design for the system; instead it was to find the best possible design
within the limitations imposed by the requirements and the physical as well as the social
development in which the system was to operate. The system design process was
divided into logical, conceptual and physical design.
- 14 -
6.1 Logical design
The logical model of the system was developed indicating all the vital steps the system
development went through. Here, we used case tools like flow charts and data flow
diagrams. Conceptual design was a description of the proposed system in terms of a set
of integrated ideas and concepts about what it should do, behave, and look like, that
was understandable by the users in the manner intended.
This was a description of the proposed system in terms of a set of integrated ideas and
concepts about what it should do, behave, and look like, that will be understandable by
the users in the manner intended. The process begun with identifying the entities
required by the users and then identifying all the important relationships that exist
between the entities.
It was the physical realization of logical design. Tables, forms and reports were created
and relationships defined among these tables and security constrains set during the
physical design we translated the expected schemas into actual database structures.
• Entities to tables
• Attributes to columns
• Attributes to columns.
Use case diagram visually represents what happens when a user interacts with a system;
it captures the functional aspects of a system.
- 15 -
Figure 2: Use Case Diagram for Admin and User
6.5 Use Case: System Users
else
- 16 -
6.6.2 Purchase ticket algorithm
Select the required information from the dropdown and search the ticket availability.
If (ticket is available)
else
else
Cancel it.
else
else
Create train
- 17 -
Click save.
Click save
Delete train
Fill all the info like time, station_to, unit_fare, total_seat_capacity, seat_range it has
Save all
- 18 -
6.7.2 Booking
- 19 -
6.7.4 Delete Train
- 20 -
6.7.5 Create Train
- 21 -
6.8 Design Class Diagram
- 22 -
6.9.3 User table
Field Name Type Size
Id Int 30
Name Varchar 150
Phone Varchar 13
Address Varchar 200
Password Varchar 150
Rule Varchar 10
Reg_date Datetime
Last_activity Datetime
Table 4: User Table
6.9.4 Admin table
Field Name Type Size
Id Int 30
Name Varchar 150
Phone Varchar 13
Address Varchar 200
Password Varchar 150
Rule Varchar 10
Reg_date Datetime
Last_activity Datetime
Table 5: Admin Table
6.9.5 Destination table
Field Name Type Size
Id Int 100
Station_from Int 20
Station_to Int 20
Train_id Varchar 20
Time Varchar 30
Status Varchar 20
Fare Varchar 5
Last_activity Datetime
Last_modify_by Int 30
Table 6: Destination Table
- 23 -
6.9.6 Booking table
Field Name Type Size
Id Int 150
Destination_id Int 50
Booking_date Varchar 30
Journey_date Varchar 30
Train_id Int 30
Seat_numbers Varchar 150
Passenger_id Int 50
Number_of_seat Int 5
Payment_status Varchar 10
Status Varchar 10
Note Varchar 250
Table 7: Booking Table
- 24 -
7 IMPLEMENTATIONS
7.1 System Implementations
The designed and developed system needs to be implemented and deployed on the
cloud. This phase deals with implementation and deployment of the project.
• The Cloud Base Train Ticketing System provides the following types of easy-
to-use, interactive, and intuitive graphical and telephonic interfaces.
• It provides an easy-to-use, intuitive Graphical User Interface (GUI) as part of
the Administrator’s working desktop environment.
• It also provides an interactive Graphical User Interface, on the World Wide Web
for the general users.
- 25 -
8 SYSTEM REQUIREMENT SPECIFICATIONS
A software requirements specification (SRS) is a description of a software system to
be developed. It is modeled after business requirements specification (CONOPS), also
known as a stakeholder requirements specification.
8.1 SRS
SN COMPONENT REQUIREMENT
3 Memory
2 GB RAM for 32-bit
2 GB RAM for 64-bit
6 RAM 10 GB of RAM
Yes
10 Graphics
- 26 -
9 OUTPUT/RESULTS
The complete output of this application will help in the following:
- 27 -
10 TESTING
The application we developed and designed is used by users. Frequent usage by number
of users may lead to crash the application by any means. After the successful
implementation and deployment of the project it needs to be tested and well-validated.
This involved testing the system in order to correct errors or remove defects that arose.
This stage involved testing the source code to make sure that it produced the expected
and desired results when subjected to a set of predefined conditions. It was subdivided
into three major phases, that is,
• unit testing,
• system testing and
• user acceptance testing.
Under unit testing, specific parts of the source code were tested. Emphasis was put on
the website-database connections to ensure that information sent by a user from the web
page form reaches the systems database.
System testing involved putting the entire software to test in order to find out whether
or not the functional requirements of the system had been efficiently and effectively
integrated and satisfied.
Finally, User acceptance testing was done; this was a key factor for the success of the
system performance. The system under consideration was tested for user acceptance by
constantly keeping in touch with the system users.
- 28 -
11 PROJECT TASK AND TIME SCHEDULE
11.1 Project Scheduling
We have planned this project according to the following schedule which is the analysis
part of the project.
- 29 -
12 TEAM MEMBERS AND DIVIDED ROLES
We divide work among the team members as categorized below:
- 30 -
13 CONCLUSIONS
Before modern computing, the reservation system was done using manual means. This
means that a person about to travel had to spend a lot of unnecessary time waiting in
queues in order to book their tickets. The manual process of reservation was also prone
to human errors, which lead to a lot of dissatisfaction amongst travelers.
Nowadays competition is so fierce between transport industries that there are lot of
discounts and a lot of luxuries given to customers that will give an edge to that particular
industry. The online train reservation automates these processes of booking railways
tickets online, thus reducing the time wasted as well as the errors that are involved in
the manual process. People will argue that online reservation system are expensive, and
create unfair competition between industries that don’t use them.
From the research view, online train reservation is one the best innovation that has taken
place in the rail industry and those companies that have not yet embraced online
reservation system ought to lose out, they may sight additional costs, maintenance cost
and the cost of development as their drawbacks but business is more than any other
occupation, it is a continual dealing with the future; and continual calculation, an
instinctive exercise in foresight.
World Wide Web and the Internet is here and transport companies for the future will
seize this opportunity to develop online reservation systems and prosper.
- 31 -
14 FUTURE UPDATES AND VERSIONING
14.1 Information Page for Trains and Routes
For the better and efficient information to the users this project can be included with an
information page that may help users to know about trains and railways. The awareness
information can be listed and circulated through the page.
Since fare is managed through the third party in this project that is credit card or
direct bank transfer. The dependency on the third party can be limited and less
efficient than the direct pay system. So, in order to make better and easier payment,
own payment system like load fund to the system by depositing in the banks or virtual
currency like wallets load can be implemented.
- 32 -
15 BIBLOGRAPHY AND REFERENCES
[1] “The Java 6 EE Tutorial -Servlet Lifecycle”
https://docs.oracle.com/javaee/6/tutorial/doc/bnafi.html[Accessed: 10-Oct -2019]
[2] “The Java 6 EE Tutorial -Java Server Pages Documents” [Online] Available :
https://docs.oracle.com/javaee/5/tutorial/doc/bnajo.html [Accessed: 31-Oct-2019]
https://creately.com/diagram/example/ijo1loq62/Use%20Case%20Diagram%20Railw
ay%20Reservation [Accessed On 15 December 2019]
- 33 -
APPENDIX A
Login Page for User and Admin
- 34 -
Dashboard seen by User
- 35 -
Figure 8: Ticket Searching Process
Payment by User
- 36 -
Admin Train Registration
- 37 -
Destination and Fare Input
- 38 -
Destinations
Figure 16:Stations
Trains
Figure 17:Trains
Users
Figure 18:Users
- 39 -
APPENDIX B
Source Code for User
public class SignUpActoin extends HttpServlet {
private static final long serialVersionUID = 1L;
ArrayList<String> formData;
protected void doGet(HttpServletRequest request,
HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter out = response.getWriter();
format = new ArrayList<String>();
String name = request.getParameter("name");
String email = request.getParameter("email");
String password = request.getParameter("password");
out.println("<br>Name" + name);
out.println("<br>Email" + email);
out.println("<br>Passord" + password);
HttpSession session = request.getSession();
formData.add(name);
formData.add(email);
formData.add(password);
session.setAttribute("formData", formData );
out.println("<br> <a href='SessionTest '>View Session
Data</a>");
}
}
- 40 -