spring mvc 用modelmap传递参数,前台页面如果有frameset 那么frame的页面访问不到参数
在controller中有如下代码:
modelMap.addAttribute("user", user);
return "main";
在main.jsp中有frameset,frame中的页面用${user} 取不到值,有没有什么办法能解决;
试过用@SessionAttributes("user")将值放在session域中,这样是可以,但如果不放在session中怎么办?