Page = page level Request = request level (used with server jump) Session = session level (client jump (server jump is also acceptable, but client jump highlights the scope of the session )) Application = application level Client jump: the server returns the request result to the client, and the client sends another request to the server. The client redirects two different requests. The last request address is displayed in the address bar. Client jump allows you to perform off-site jump. 1. Link jump: <a href = ""> </a> 2. Form submission 3. response. sendredirect ("3. jsp "); 4. <Mata http-equiv = "refresh", content = "3; 2. jsp"/> 5. response. setheader ("refresh", "3; 2. jsp "); 6. Client jump "/" indicates the server and path webapps Server-side jump (intra-container jump): Automatic jump can be performed inside the server, which is transparent to users. The first page address displayed in the address bar of the same request during two jumps. Only intra-site jumps are allowed. 1. <JSP: Forward page = ""/> 2. pagecontext. Forward (); 3. Request. getrequestdispatcher ("1.jsp"). Forward (request, response ); 3. Server jump "/" indicates the site root path From http://zhisandy.blog.sohu.com/159260128.html |