标签:快捷 输出 java err 获取 user 错误 for 错误输出
这是jsp报的异常
jsp代码:
<% String LoginUsername = ""; String LoginPassword = ""; try { //获取当前站点的所有Cookie Cookie[] cookies = request.getCookies(); for (int i = 0; i < cookies.length; i++) {//对cookies中的数据进行遍历,找到用户名、密码的数据 if ("LoginUsername".equals(cookies[i].getName())) { LoginUsername = cookies[i].getValue(); } else if ("LoginPassword".equals(cookies[i].getName())) { LoginPassword = cookies[i].getValue(); } } } catch (Exception e) { // e.printStackTrace(); // ser 调出错误输出 idea快捷键 System.err.println("java.lang.NullPointerException:: "+"from index.jsp:69"); } %>
异常 java.lang.NullPointerException at org.apache.jsp.index_jsp._jspService(index_jsp.java:124)
标签:快捷 输出 java err 获取 user 错误 for 错误输出
原文地址:https://www.cnblogs.com/kinome/p/9013414.html