A. jsp:
<% Response. sendredict (/test/B. jsp) system. Out. println ("test ");//CodeWill Execute %>
<JSP: Forward page = "B. jsp"/>
Sendredict |
Forward |
Different Response |
Different Response, but B. jsp can get the parameters of A. jsp |
After the switch, the code after the original sendredict will continue to be executed |
The statements after forward are not sent to the client. |
Slow speed |
Fast |
You can jump to any page, including the Internet, if you need a round-trip between the client and the server. |
Internal Server conversion, cannot be switched to Internet such as Sina |
The address bar changes to B. jsp. |
The address bar has not changed. |
You can pass the parameter B. jsp? Value = 1 |
You can pass the parameter B. jsp? Value = 1 |
/Represents the server address (http: // 127.0.0.1 /) Response. sendredict ("/test/B. jsp ") |
/Represents the address of the current page (http: // 127.0.0.1/test /) |