I wasn't getting any data into the flight.jsp, because the variable "flight" couldn't be resolved.
I changed the FlightsController singleFlight method to fix it. I changed this:
Code:
@RequestMapping(value = "/flight")
public String singleFlight(@RequestParam("id")long id, ModelMap model) throws Exception {
Flight flight = airlineService.getFlight(id);
model.addAttribute(flight);
return "flight";
}
to this:
Code:
@RequestMapping(value = "/flight")
public String singleFlight(@RequestParam("id")long id, ModelMap model) throws Exception {
Flight flight = airlineService.getFlight(id);
model.addAttribute("flight", flight);
return "flight";
}
I had to make another change to flights.jsp. I changed this line:
Code:
<c:url var="flightUrl" value="flight">
to this:
Code:
<c:url var="flightUrl" value="/flight">
All is well now. Web MVC client appears to be working fine. Now onto the WS clients.
%