jsp分页显示显示结果当没有数据后会报错怎么解决
比如数据库中有20条数据分成4页显示了点到第5页会报java.lang.NullPointerExceptionatorg.apache.jsp.message_jsp....
比如数据库中有20条数据 分成4页显示了点到第5页会报java.lang.NullPointerException at org.apache.jsp.message_jsp._jspService(message_jsp.java:165) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)该怎么改??
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询