Пример #1
0
 /* (non-Javadoc)
  * @see com.common.controller.BaseAction#initMain()
  */
 @Override
 public String initMain() throws Exception {
   // TODO Auto-generated method stub
   // newsList = newsService.findAll();
   newsList = newsService.findByCategoryId(categoryId);
   newsVO.setCategoryId(categoryId);
   return "toInitPage";
 }
Пример #2
0
 public String showDetails() {
   //	newsVO = new NewsVO();
   //		newsVO = newsService.findById(newsVO.getNewsId());
   newsVO = (NewsVO) newsService.findByProperty("newsId", newsVO.getNewsId()).get(0);
   return "toDetailPage";
 }