Flightid Flightnameid Locationid Time Flightclass Price Date Flightname Time
Flightid Flightnameid Locationid Time Flightclass Price Date Flightname Time
java
package bean;
import java.sql.Date;
package bean;
package bean;
<option>To:</option>
<option>Yangon</option>
<option>Mandalay</option>
<option>Naypyidaw</option>
<option>Taungoo</option>
</select>
<select name="flightClass" id="" >
<option>Flight Class:</option>
<option>Economy Class</option>
<option>Business Class</option>
</select>
Adults<select name="adults" id="" >
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
Child<select name="child" id="" >
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
Infant<select name="infant" id="" >
<option>0</option>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
</head>
<body>
<h2>Available Flights</h2>
<form action="selectFlight" method="post">
<table>
<thead>
<tr>
<th>Select</th>
<th>Flight Name</th>
<th>Time</th>
<th>Price</th>
</tr>
</thead>
<tbody>
<s:iterator value="flightList">
<tr>
<td>
<input type="radio" name="selectedBusID"
value="<s:property value='busID' />" required>
</td>
<td><s:property value="flightName" /></td>
<td><s:property value="time" /></td>
<td><s:property value="price" /></td>
</tr>
</s:iterator>
</tbody>
</table>
<button type="submit">Proceed to Seat Selection</button>
<input type="hidden" name="from" value="<s:property
value='#session.flightClass' />">
<input type="hidden" name="from" value="<s:property
value='#session.from' />">
<input type="hidden" name="to" value="<s:property
value='#session.to' />">
<input type="hidden" name="date" value="<s:property
value='#session.date' />">
</form>
SQL