@RequestMapping(value="/doSearch", method = RequestMethod.POST)
public ModelAndView listSerchClients(@RequestParam("bnCustomerName") String searchText) {
Map<String, Object> model = new HashMap<String, Object>();
model.put("sclients", prepareListofBean(clientService.listSearchClientss(searchText))) ;
return new ModelAndView("serchResult", model);
}
Curently Searchresults返回serchResult.jsp
但我想保持serch结果在当前的jsp(search.jsp)中如何实现这个
答案 0 :(得分:1)
Curently Searchresults返回
serchResult.jsp
但我希望将serch结果保存在当前的jsp(search.jsp
)中如何实现此目的
这是因为您在方法中返回serchResult.jsp
。只需将返回的ModelAndView
更改为search
return new ModelAndView("search", model);