session過期跳出 iframe框架

    PrintWriter out = response.getWriter();

            out.write("<script>window.parent.location.href='"+sAppUrl+"/login.action?requesturl="+java.net.URLEncoder.encode(sRequestURL+sQuestStr, "UTF-8")+"';</script>");

這樣就可以跳出iframe了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章