iframe和response.sendRedirect()跳转到父页面
来源:互联网 发布:js高阶函数 编辑:程序博客网 时间:2024/05/16 18:57
在项目中,因为为了给页面分层次,就使用了 内嵌iframe 的分了三个框。在子页面进行操作的时候,如果session超时,就要被拦截器拦截重新回到首页进行登录,但是在sub页
面 ,进行操作的时候,如果session超时,需要跳转到首页进行登录的话,首页的页面就嵌在sub页面进行显示 了,这样显然是不符合逻辑了,应该是跳回到最顶层的父页面.
错误的代码如下:
因为response.sendRedirect()没有target属性,但html页面和js中有,于是,当判断出用户没有访问权限时,我们可以在jsp中使用js来转向到真正的登录页面。
正确跳转到父页面的代码:
0 0
- iframe和response.sendRedirect()跳转到父页面
- iframe和response.sendRedirect()跳转到父页面的问题----已解决
- iframe和response.sendRedirect跳出父窗口有关问题
- iframe和response.sendRedirect跳出父窗口有关问题
- servlet中页面跳转response.sendRedirect() 详解
- response.sendRedirect()跳转不到指定页面
- servlet中页面跳转response.sendRedirect() 详解
- iframe和response.sendRedirect使用的问题
- iframe和response.sendRedirect使用的问题
- iframe和response.sendRedirect使用的问题
- iframe和response.sendRedirect使用的问题
- JSP中页面跳转response.sendRedirect()和request.getRequestDispatcher()的区别
- JSP中页面跳转response.sendRedirect()和request.getRequestDispatcher()的区别
- response.sendRedirect()跳转
- response.sendRedirect 的功能是地址重定向(页面跳转)
- response.sendRedirect 的功能是地址重定向(页面跳转)
- servelet中ajax不能用response.sendRedirect跳转页面
- <jsp:forward>与response.sendRedirect()页面跳转的区别
- sqlserver——你真的懂你写的Sql语句么?
- 博弈_______Stone Game II(hdu 4388 2012多校第九场)
- 开始的开始
- Windows下用DirectShow查找摄像头(含分辨率)和麦克风
- HDU 1231 最大连续子序列
- iframe和response.sendRedirect()跳转到父页面
- 编译ncurses错误处理及解决办法
- redis配置认证密码
- 如何利用jQuery使复选框一键全选/全不选
- Hive MapJoin
- java基本数据类型
- 【精辟】socket阻塞与非阻塞,同步与异步,select,pool,epool
- 162.You created a profile APP_USER and assigned it to the users. After a month, you decide to drop t
- 很好的eayui 编辑例子