「Spring MVC」serlvetを使用してリダイレクト先を行うサンプル
使用例
@RequestMapping("/info") public String info(HttpServletRequest request,HttpServletResponse response){ String username = "yamada"; request.setAttribute("username",username); return "/back/attr"; }
Coding Changes the World
使用例
@RequestMapping("/info") public String info(HttpServletRequest request,HttpServletResponse response){ String username = "yamada"; request.setAttribute("username",username); return "/back/attr"; }