What is the difference between client jump and server jump?

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.