Travel Report Using JSP/JDBC
Travel Report Using JSP/JDBC
Write a program that uses database connectivity to generate the travel report, which
provides details on passengers travelling from different sources to a particular destination.
Your code should be able to retrieve records from database if business rules are satisfied,
otherwise return Null.
Sample Input: Bangalore
Sample Report:
BookingID
Source
---------------------------------------5001
Mysore
5002
Hyderabad
Input
Output
Map{<5001,Mysore>,
UTC3_01
Bangalore
UTC3_02
Hyderabad
Map{<5003,Vijayawada>}
UTC3_03
Delhi
Null
<5002,Hyderabad}
Refer the following data from the TravelBooking table which is provided in table script file:
BookingId
Source
Destination
VehicleType
PhoneNo
5001
Mysore
Bangalore
9740000000
5002
Hyderabad
Bangalore
9985000000
5003
Vijayawada
Hyderabad
9886000000