★<JSP: Forward page = "Uri"/>
● Jump without changing the address bar-server jump
● Jump immediately after the jump statement is executed-the subsequent code is no longer executed
● Note: If you use forward redirection, you must release all resources before the redirection.
● When forward is used, the attributes set for the request can still be stored on the next page (setattribute)
● PASS Parameters through <JSP: Param name = "" value ""/>
★Response. sendredirect ("Uri ")
● Jump from address bar change-client jump
● Jump back after all code is executed
● The request attribute cannot be saved-The address is changed and the client jumps
● Passing parameters through URL address Rewriting
★Response. setheader ("header information content", "header information Parameters ")
Similar to response. sendredirect ("Uri"), it is a client jump. Usually used for Refresh. The following is an example of redirecting to a specified page after two seconds: Response. setheader ("refresh", "2; url = Page name ");