spring mvc 中如何传值
1、session传值,通过request获取session,然后通过session的方法获取绑定值@RequestMapping("/customTest.do")public String customTest(HttpServletRequest request,String name,String phone){HttpSession session = request.getSession();

3、/** * 接收页面传递参数,插入数据库,并跳转列表 * @param sell * @param model * @return */model传值,通过数据模型传值,这种传值属于request传值,一次请求期间的传值;


6、实体对象接受数据,进行传值,保证jsp页面中input标签中name属性与实体对象的属性一致,即可使吹涡皋陕用实体对象接收jsp页面的数据;@RequestMapping("/insertSell.do")public String insertSell(SellInfo sell,Model model){sellService.insert(sell);return "redirect:/login/sell.do";}
