There are two ways of jumping in a JSP
- Forward Jump: <jsp:forward page = "Jump pages Address" >
- Response Jump: Response.sendredirect ("jump page address");
The differences between the two types of jumps are as follows
- Forward Jump:
- Server-side jump, the address bar does not change.
- Execute the jump immediately after execution to the jump statement, and then the code is no longer executed (be sure to release all resources before jumping).
- The properties of the request setting are still available on the page after the jump.
- Response Jump:
- The client jumps and the address bar changes.
- Jump after all code execution is complete.
- The page cannot use the request on the previous page after the jump.
- Use address rewriting to pass parameters (Response.sendredirect ("URL? parameter name = parameter value")).
What are the two ways to jump in JSP? What's the difference?