日期:2014-05-17 浏览次数:20689 次
@RequestMapping(params="method=initUpdateNews")
public ModelAndView initUpdateNews(HttpServletRequest request)throws Exception{
ModelAndView view = new ModelAndView();
int i=Integer.parseInt(request.getParameter("id"));
News news =newsService.findById(i);
List<Type>types=typeService.getTypeList();
view.addObject("types",types);
view.addObject("News",news);
view.setViewName("news/updateNews");
return view;
}