class="java" name="code"> @Controller public class ListMobilecardsController { @RequestMapping(value = "/listMobilecards.action", method = RequestMethod.GET) public ModelAndView listMobilecardsAction(@RequestParam(value = "curPage", required = false) Long curPage) { ModelAndView modelAndView = new ModelAndView("mobilecard/listMobilecards"); if (null == curPage) { curPage = 1l; } Pager pager = new Pager(); pager.setCurPage(curPage); MobilecardService mobilecardService = (MobilecardService) BSSBeanFactory.getBean(MobilecardService.BEAN_NAME); mobilecardService.findMobilecardsByPager(pager); modelAndView.addObject("pager", pager); return modelAndView; } }
public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { ........ response.sendRedirect("photohouxuandetail.do?pid="+pid); return null; }
return new ModelAndView("redirect:photohouxuandetail.do?pid="+pid);