![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java+JSP+Servlet
SnowUnicorn
这个作者很懒,什么都没留下…
展开
-
servlet 中out.println("Name:");输出出现乱码
在PrintWriter out = response.getWriter(); 之前tian response.setContentType("text/html;charset=GB2312"); request.setCharacterEncoding("GB2313"); response.setCharacterEncoding("GB2312"); 这3条语句都加上就可以了`怎样都原创 2014-05-22 22:42:28 · 569 阅读 · 0 评论 -
servlet的responsesendredirect方法出现了错误
java.lang.IllegalStateException org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:435) controler.LoginServlet.doPost(LoginServlet.java:32) javax.servlet.http.HttpServlet原创 2014-05-22 22:24:15 · 1169 阅读 · 0 评论