@RequestMapping(value = "tojsp", method = RequestMethod.POST) @ResponseBody public String toJsp() { return "redirect:/sys/rightsmanage/rights/list.jsp"; }
本人想实现例如js跳转页面时的: window.parent.location.href 这种的,return 怎么写?
现在也没跳转之后不是父级刷新~
解决方案
13
删了
@ResponseBody
@ResponseBody
13
页面路径错了吧,还有就是,去掉.jsp,不过本人估计你没有配置视图文件
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/views/"/> <property name="suffix" value=".jsp"/> </bean>
14
@ResponseBody 删了
return new ModelAndView(“rightsmanage/rights/list.jsp“,”calendar”,Calendar.getInstance());
return new ModelAndView(“rightsmanage/rights/list.jsp“,”calendar”,Calendar.getInstance());