如在WEB-INF下有a.jsp和b.jsp,从a.jsp中跳转到b.jsp并在新窗口打开
一:在a.jsp中写如下代码
<script type="text/javascript">
function aa(){
window.open("bb.do");
}
</script>
<button onclick="aa()">aa</button>
二:
@Controller
public class TextSvl {
@RequestMapping("bb.do")
public String BB() {
return "WEB-INF/b.jsp";
}
}
这样就可以了