java web编程积累
2016-09-14 14:01
197 查看
1. 解决页面显示乱码问题
添加代码
response.setContentType("text/html;charset=utf-8");
2. jsp include 用法
<%@ include file = "page.jsp" %>
3.
request.getSession().setAttribute("user", user);
response.sendRedirect(request.getContextPath() + "/servlet/IndexServlet");
添加代码
response.setContentType("text/html;charset=utf-8");
2. jsp include 用法
<%@ include file = "page.jsp" %>
3.
request.getSession().setAttribute("user", user);
response.sendRedirect(request.getContextPath() + "/servlet/IndexServlet");
相关文章推荐
- Java精华积累:每个初学者都应该搞懂的问题!
- QTableView与QTableWidget高阶使用积累
- E文积累_20080320_what's going to be covered on the test
- Dos命令积累
- eclipse 插件开发经验积累
- adb命令积累
- C++主题年技巧积累#2——我被static撞了一下腰
- 论文词汇积累
- C++主题年技巧积累#1——UltraEdit的代码美化
- SAT写作--积累才是关键
- symbian积累--Task
- 一切成功源于积累——20150611 外汇经典之利好却利空 利空却利好 欧美 美国5月零售数据利好
- C++ 有些只需要积累
- Linux常用命令积累
- 如何删除表中的重复记录?等等常用SQL语句的积累
- 异步无刷新上传,积累
- ASP.NET开发经验积累
- 人生最重要的时候,从30岁到35岁:为生命多积累一些厚度
- emacs使用经验积累
- 日常积累------awk脚本