Permalink
Browse files

upates to views

  • Loading branch information...
1 parent 05179ed commit 695f83cad8a5024ef4cb0b8fe0eb5ba01688fc74 @markfisher committed Mar 18, 2012
Showing with 18 additions and 13 deletions.
  1. +10 −7 src/main/webapp/WEB-INF/views/home.jsp
  2. +8 −6 src/main/webapp/WEB-INF/views/search.jsp
@@ -5,20 +5,23 @@
<title>Travel Demo: Home</title>
</head>
<body>
-<h1>
- Hello Joe
-</h1>
-
-<P>Here are your bookings:</P>
+<h3>Current Bookings:</h3>
<ul>
<c:forEach var="booking" items="${bookings}">
- <li>${booking}</li>
+ <li>
+ <b>Booking ID ${booking.id}: from ${booking.startDate} to ${booking.endDate}</b>
+ <ul>
+ <li>flight: ${booking.flight}</li>
+ <li>hotel: ${booking.hotel}</li>
+ <li>car: ${booking.car}</li>
+ </ul>
+ </li>
</c:forEach>
</ul>
<hr/>
-<p>Book another trip:</p>
+<p>Book Another Trip:</p>
<form action="search" method="post">
Zip: <input type="text" name="zip"/>
<br/>
@@ -13,16 +13,18 @@
<form action="book" method="post">
<select name="flight">
- <option value="1">Option 1</option>
- <option value="2">Option 2</option>
+ <option>First Class Airlines</option>
+ <option>Cramped Cabin Air</option>
</select>
<select name="hotel">
- <option value="3">Option 3</option>
- <option value="4">Option 4</option>
+ <option>Cheap Inn</option>
+ <option>Luxury Suites</option>
+ <option>Roach Motel</option>
</select>
<select name="car">
- <option value="5">Option 5</option>
- <option value="6">Option 6</option>
+ <option>Compact</option>
+ <option>Convertible</option>
+ <option>SUV</option>
</select>
<input type="submit" value="Book"/>
</form>

0 comments on commit 695f83c

Please sign in to comment.