13:46:13,921 ERROR [default]:250 - Servlet.service() for servlet default threw exception java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:433) at org.apache.jsp.PageList_jsp._jspService(PageList_jsp.java:74) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
我的JSP页面是这样子接收的
<% String start = request.getParameter("startPage"); if(start==null){ System.out.print(start); response.sendRedirect("error.jsp"); }else{ int startPage = Integer.parseInt(start); System.out.print(startPage); } String end = request.getParameter("endPage"); if(end==null){ response.sendRedirect("error.jsp"); }else{ int endPage = Integer.parseInt(end); System.out.print(endPage); } %>