日期:2014-05-17 浏览次数:20729 次
org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:460) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) cn.gov.common.utils.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:43) root cause java.lang.NullPointerException user.defined.Pagex.setQs(Pagex.java:71) org.apache.jsp.dicts.dict_005fmanage_jsp._jspService(dict_005fmanage_jsp.java:62) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) cn.gov.common.utils.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:43)
<% String pId=request.getParameter("id"); int cp=1; //当前页码 int num=10; //每页显示记录数 String currpage=request.getParameter("p"); if(currpage!=null&&currpage.length()>0){ cp=Integer.parseInt(currpage); }else{ cp=1; } int i=1+(cp-1)*num; //起始序号 dicts d=new dicts(cp,num); d.setQs(request.getQueryString());//这里出空异常 ResultSet rs=d.display(pId); String name=null; String guid=null; String ppId=null; if(rs!=null&&rs.next()){ guid=rs.getString("guid"); ppId=rs.getString("parentId"); name=rs.getString("name"); } if(rs!=null){ rs.close(); } %>