我有一个形式为:
@Controller
public class fooController{
@RequestMapping(value = "/foo.htm", method = RequestMethod.POST)
public String processForm(HttpServletRequest request,
HttpServletResponse response)
return "view1";
}
其中“view1”映射到一个 jsp 文件。不过,我需要的是以某种方式返回 3 个单独的视图,这些视图将在浏览器中占据 3 个单独的选项卡。基本上用户点击提交,然后弹出三个选项卡。
我怎么能在 Spring 中完成这个(带注释)?