Spring MVC Flash Attribute 的讲解与使用示例

Spring MVC Flash Attribute 的讲解与使用示例

http://www.oschina.net/translate/spring-mvc-flash-attribute-examplespring

 

@RequestMapping(value="addcustomer", method=RequestMethod.POST)spring-mvc

    public String addCustomer(@ModelAttribute("customer") Customer customer,mvc

            final RedirectAttributes redirectAttributes) {app

    //...spa

        redirectAttributes.addFlashAttribute("message""Successfully added..");.net

    //...code

 

        return "redirect:some_other_request_name";flash

    }request

相关文章
相关标签/搜索