Spring MVC 中采用注解方式 Action中跳转到另一个Action的写法

Spring MVC 中采用注解方式 Action中跳转到另一个Action的写法

在Action中方法的返回值都是字符串行,一般情况是返回某个JSP,如:

return "xx":意思是返回到某个JSP页面上

如果想在此Action中跳转到另一个Action中怎样做呢?

return "redirect:/userinfo/userinfoList.action?tpe=1"

这就是返回到
@RequestMapping("/userinfo/userinfoList")
mapping为“/userinfo/userinfoList”的action方法

猜你喜欢

转载自zisetoufa.iteye.com/blog/1833417
今日推荐