H2pl4U / ilovejava1314.github.io

hexo搭建的博客,存在少量bug,建议查看本人博客
https://ilovejava1314.github.io/
0 stars 0 forks source link

Cookie和Session | coderBlog #2

Open H2pl4U opened 5 years ago

H2pl4U commented 5 years ago

https://ilovejava1314.github.io/2018/11/04/cookieAndSession/

H2pl4U commented 5 years ago

文章不够整齐,别的还行

fyhhub commented 5 years ago

666

fyhhub commented 5 years ago
response.setContentType("text/html;charset=utf-8");
PrintWriter w = response.getWriter();
//获取商品名称
String name = request.getParameter("name");
name=new String(name.getBytes("iso8859-1"), "utf-8");