中文乱码问题,
发表在JavaWeb答疑区
2017-04-21
是否精华
是
否
版块置顶:
是
否
HTTP Status 500 - An exception occurred processing JSP page /deal.jsp at line 15
type Exception report
message An exception occurred processing JSP page /deal.jsp at line 15
description The server encountered an internal error that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: An exception occurred processing JSP page /deal.jsp at line 15 12: <body> 13: <% 14: String name=request.getParameter("name"); 15: name=new String(name.getBytes("ISO-8859-1"),"UTF-8"); 16: String wen2=request.getParameter("wen2"); 17: String liu=name+":"+wen2+"<br>"; 18: if(wen2!=null){ Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:580) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:477) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
root cause
java.lang.NullPointerException org.apache.jsp.deal_jsp._jspService(deal_jsp.java:96) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:439) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339) javax.servlet.http.HttpServlet.service(HttpServlet.java:731) org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.77 logs.
Apache Tomcat/7.0.77
可以告诉我哪里出错了么
首页上一页 1 下一页尾页 3 条记录 1/1页