redirect
If the method redirects to another url, the method return value is "redirect: url path"
Use redirect to redirect, request data cannot be shared, and the URL address bar will change.
The url address changes as follows:
After submission
forward
Use forward to forward the request, request data can be shared, and the URL address bar will not change.
The return value of the method is "forward: url path"
The url address changes as follows:
After submission