@RequestMapping(value=”/editItemsSubmit”,method={RequestMethod.GET,RequestMethod.POST})
public String editItemsSubmit(HttpServletRequest request,Integer id,ItemsCustom itemsCustom)throws Exception{
itemsService.updateItems(id, itemsCustom);
return “forward:queryItems.action”;
}
debug时看itemsCustom中的全部属性值都为空
public String editItemsSubmit(HttpServletRequest request,Integer id,ItemsCustom itemsCustom)throws Exception{
itemsService.updateItems(id, itemsCustom);
return “forward:queryItems.action”;
}
debug时看itemsCustom中的全部属性值都为空
解决方案:20分
看你的页面怎么传值的?