标签:list 转发 http use aaa public turn ret jsp
@Controller public class Mycontroller { //转发 @RequestMapping("/adduser") public String add(HttpServletRequest request){ request.setAttribute("happy","aa"); return "/listuser"; } @RequestMapping("/listuser") public String list(){ return "/list.jsp"; } //重定向 @RequestMapping("/adduser2") public String add2(HttpServletRequest request){ request.setAttribute("happy","aaa"); return "redirect:/listuser"; } @RequestMapping("/listuser2") public String list2(){ return "redirect:/list.jsp"; } }
标签:list 转发 http use aaa public turn ret jsp
原文地址:http://www.cnblogs.com/shiwz/p/7402489.html