Divide the page into several frames. After logging in, display the exit button in top.jsp
Click the exit button, and the right.jsp on the back side should jump to login.jsp again
But how to do it? How to control the jump of right.jsp in top.jsp?
習慣沉默2017-06-23 09:15:43
To solve the problem, use: (for specific personal circumstances, see the details of the DOM tree structure)
window.parent.frames("rightFrame").window.location.href="right.jsp";
And this line of code cannot be followed by a redirect command: response.redirect();
Redirect will invalidate the previous page jump.
扔个三星炸死你2017-06-23 09:15:43
Do you need front-end jump or server-side jump? jsp means forwarding and redirection, I think redirection is what you want
If it’s a front-end jump, you can exit directly at that location<a href="./right.jsp">Exit</a>
Wouldn’t the page jump if you change it to this?