|
楼主 |
发表于 2014-1-17 11:54:04
|
显示全部楼层
本帖最后由 wangyucan1321 于 2014-1-17 11:56 编辑
搞定了:以下是实现步骤:
1、菜单里面的路径是:videoController.do?videoPublic
@RequestMapping(params = "videoPublic")
public ModelAndView videoPublic(String id, HttpServletRequest request) {
return new ModelAndView("jeecg/test/video/videoPublic");
}
2、videopublic的JSP代码:
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="easyui-layout" fit="true">
<!-- update-begin--Author:TangHong Date:20130515 for:[91]demo分类菜单中点击表单验证报错 -->
<link rel="stylesheet" href="plug-in/Validform/css/divfrom.css" type="text/css">
<link rel="stylesheet" href="plug-in/Validform/css/style.css" type="text/css">
<link rel="stylesheet" href="plug-in/Validform/css/tablefrom.css" type="text/css">
<!-- update-end--Author:TangHong Date:20130515 for:[91]demo分类菜单中点击表单验证报错 -->
<div region="center" style="padding: 3px;" class="easyui-panel" id="demopanle">
<iframe src="videoController.do?videoIndexskip" id="fa" width="100%" height="100%" border="0" frameborder="0" scrolling="yes"></iframe>
</div>
</div>
</body>
</html>
/**
* 查看界面跳转
* @return
*/
@RequestMapping(params = "videoIndexskip")
public ModelAndView videoIndexskip( HttpServletRequest request) {
return new ModelAndView("jeecg/test/video/videoIndexskip");
}
3、videoIndexskip JSP的代码:
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>视屏监控</title>
<script type="text/javascript">
window.open('videoController.do?videoindex','_blank');
</script>
</head>
<body>
</body>
</html>
4、videoindex这个方法
@RequestMapping(params = "videoindex")
public ModelAndView videoindex(String id, HttpServletRequest request) {
return new ModelAndView("jeecg/test/video/videoIndex");
}
最终出来了我想要的效果,我也觉得这样写麻烦,但是不这样写JS出来不到效果 |
|