摘要: 页面的设置: 必须使用表单,而不能是超链接; 表单的method必须是POST,而不能是GET; 表单的enctype必须是multipart/form-data(字符);默认值: application/x-www-form-urlencoded(字节) 在表单中添加file表单字段,即<inpu 阅读全文
posted @ 2020-05-20 20:23 64Byte 阅读(451) 评论(0) 推荐(0) 编辑
摘要: 进行编码处理: 获取请求参数中的乱码问题; POST请求:request.setCharacterEncoding(“utf-8”); GET请求:new String(request.getParameter(“xxx”).getBytes(“iso-8859-1”), “utf-8”); 响应的 阅读全文
posted @ 2020-05-20 19:15 64Byte 阅读(245) 评论(0) 推荐(0) 编辑