随笔分类 - JavaWeb
摘要:方法一: get方式提交的参数编码,只支持iso8859-1编码。因此,如果里面有中文。在后台就需要转换编码,如下 String bname = request.getParameter("bname"); bname = new String(bname .getBytes("iso8859-1"
阅读全文
摘要:发现代码中关于请求转发/重定向的有这两条 new CartServlet().clearCart(request,response); request.getRequestDispatcher("/shop/pages/cart/checkout.jsp").forward(request,resp
阅读全文
摘要:你会发现那个web文件夹不太一样 https://blog.csdn.net/malz_zh/article/details/85098356
阅读全文
