get
This commit is contained in:
@@ -25,7 +25,7 @@ public class HotelsController {
|
||||
}
|
||||
}
|
||||
|
||||
@RequestMapping
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
@ModelAttribute("hotels")
|
||||
public List<Hotel> search(SearchCriteria criteria) {
|
||||
return bookingService.findHotels(criteria);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<tiles:insertTemplate template="/WEB-INF/layouts/standard.jsp">
|
||||
<tiles:putAttribute name="content">
|
||||
|
||||
<form:form modelAttribute="searchCriteria" action="search">
|
||||
<form:form modelAttribute="searchCriteria" action="search" method="get">
|
||||
<div class="section">
|
||||
<span class="errors">
|
||||
<form:errors path="*"/>
|
||||
|
||||
Reference in New Issue
Block a user