1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

Update J2EE基础知识.md

修改了错别字
This commit is contained in:
maokegithub 2019-02-17 16:06:57 +08:00 committed by GitHub
parent 0a53531dc4
commit e0b872f10b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ Form标签里的method的属性为get时调用doGet()为post时调用doPost()
```java
request.getRequestDispatcher("login_success.jsp").forward(request, response);
```
**重定向Redirect** 是利用服务器返回的状态来实现的。客户端浏览器请求服务器的时候服务器会返回一个状态码。服务器通过HttpServletRequestResponse的setStatus(int status)方法设置状态码。如果服务器返回301或者302则浏览器会到新的网址重新请求该资源。
**重定向Redirect** 是利用服务器返回的状态来实现的。客户端浏览器请求服务器的时候服务器会返回一个状态码。服务器通过HttpServletRequestResponse的setStatus(int status)方法设置状态码。如果服务器返回301或者302则浏览器会到新的网址重新请求该资源。
1. **从地址栏显示来说**