HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 31 in the jsp file: /cheolgu_board.jsp Syntax error on token "int", delete this token 28: || request.getRemoteAddr().toString().equals("27.81.33.177") 29: ) 30: 31: int totalRecords=-1; 32: int totalPages =-1; 33: int nowPage; 34: int stPage; An error occurred at line: 31 in the jsp file: /cheolgu_board.jsp totalRecords cannot be resolved to a variable 28: || request.getRemoteAddr().toString().equals("27.81.33.177") 29: ) 30: 31: int totalRecords=-1; 32: int totalPages =-1; 33: int nowPage; 34: int stPage; An error occurred at line: 153 in the jsp file: /cheolgu_board.jsp totalRecords cannot be resolved to a variable 150: rs=stmt.executeQuery(sql); 151: if(rs.next()) 152: { 153: totalRecords=rs.getInt(1); 154: totalPages=(totalRecords+19)/20; 155: if(nowPage>totalPages) 156: { An error occurred at line: 154 in the jsp file: /cheolgu_board.jsp totalRecords cannot be resolved to a variable 151: if(rs.next()) 152: { 153: totalRecords=rs.getInt(1); 154: totalPages=(totalRecords+19)/20; 155: if(nowPage>totalPages) 156: { 157: response.sendRedirect("cheolgu_board_invalid.jsp"); An error occurred at line: 165 in the jsp file: /cheolgu_board.jsp totalRecords cannot be resolved to a variable 162: } 163: } 164: 165: sql="select * from bj1_writings where num<="+(totalRecords-20*(nowPage-1))+" order by num desc limit 20"; 166: if(totalRecords==1) 167: { 168: sql="select * from bj1_writings"; An error occurred at line: 166 in the jsp file: /cheolgu_board.jsp totalRecords cannot be resolved to a variable 163: } 164: 165: sql="select * from bj1_writings where num<="+(totalRecords-20*(nowPage-1))+" order by num desc limit 20"; 166: if(totalRecords==1) 167: { 168: sql="select * from bj1_writings"; 169: } Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:439) org.apache.jasper.compiler.Compiler.compile(Compiler.java:356) org.apache.jasper.compiler.Compiler.compile(Compiler.java:334) org.apache.jasper.compiler.Compiler.compile(Compiler.java:321) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.35 logs.

Apache Tomcat/6.0.35