## 請求中文亂碼解決:
1. 使用String進行數據重新編碼:`uname = new String(uname.getByte("iso88559-1"),"utf-8");
2. 使用公共配置:
```
get方式:
步驟一:request.setCharacterEncoding("UTF-8");
步驟二:在tomcat目錄下的conf目錄中修改service.xml文件:在Connector標簽中增加屬性useBodyEncodingForURI="ture";
post方式:
resquest.setCharacterEncoding("utf-8");
```
- servlet學習
- HTTP的概念和介紹
- servlet的概念和介紹
- 服務器
- servlet的生命周期
- 不用配置web.xml文件的servlet文件的創建方法
- 創建一個web項目
- service,doget,dopost方法的區別
- reuqest對象
- response對象
- servlet的使用流程
- 請求中文亂碼解決
- 請求轉發學習,request作用域,重定向
- 錯誤
- Httpservlet cannot be resolved to a type的原因與解決方法
- eclipse中創建servlet項目沒有web.xml問題
- HttpServlet無法自動補全,無法導包
- 創建servlet后,web.xml沒有自動配置
- 表單提交錯誤
- servlet常見錯誤