示例#1
0
 @RequestMapping(value = "/manage", method = RequestMethod.GET)
 public String manageGet(HttpSession session, HttpServletRequest req, Model model) {
   ArticleCondition cond = (ArticleCondition) getCond(session, ArticleCondition.class, null);
   if (cond == null) {
     cond = (ArticleCondition) getCond(session, ArticleCondition.class, new ArticleCondition());
   }
   setPage(model, articleManager.queryPage(cond));
   model.addAttribute("condition", cond);
   model.addAttribute("navs", navigationManager.findAll());
   setMenu(model, req);
   return basedir + "/manage";
 }
示例#2
0
 @RequestMapping(value = "/mod", method = RequestMethod.GET)
 public String modGet(@RequestParam("id") String id, HttpServletRequest req, Model model) {
   model.addAttribute("pojomodel", articleManager.findById(id));
   model.addAttribute("navs", navigationManager.findAll());
   return basedir + "/mod";
 }
示例#3
0
 @RequestMapping(value = "/add", method = RequestMethod.GET)
 public String addGet(HttpServletRequest req, Model model) {
   model.addAttribute("pojomodel", new Article());
   model.addAttribute("navs", navigationManager.findAll());
   return basedir + "/add";
 }