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?
欢迎选择我的课程,让我们一起见证您的进步~~
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.
response.redirect();
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?
<a href="./right.jsp">Exit</a>
To solve the problem, use: (for specific personal circumstances, see the details of the DOM tree structure)
And this line of code cannot be followed by a redirect command:
response.redirect();
Redirect will invalidate the previous page jump.
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?