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: 75 in the jsp file: /searchSupplier.jsp driver cannot be resolved to a variable 72: 73: Statement st; 74: try{ 75: Class.forName(driver).newInstance(); 76: con = DriverManager.getConnection(url+db,userName,password); 77: String city=request.getParameter("city"); 78: String query = "select * from suppliers "; An error occurred at line: 76 in the jsp file: /searchSupplier.jsp db cannot be resolved to a variable 73: Statement st; 74: try{ 75: Class.forName(driver).newInstance(); 76: con = DriverManager.getConnection(url+db,userName,password); 77: String city=request.getParameter("city"); 78: String query = "select * from suppliers "; 79: if(city != null){ An error occurred at line: 76 in the jsp file: /searchSupplier.jsp userName cannot be resolved to a variable 73: Statement st; 74: try{ 75: Class.forName(driver).newInstance(); 76: con = DriverManager.getConnection(url+db,userName,password); 77: String city=request.getParameter("city"); 78: String query = "select * from suppliers "; 79: if(city != null){ An error occurred at line: 76 in the jsp file: /searchSupplier.jsp password cannot be resolved to a variable 73: Statement st; 74: try{ 75: Class.forName(driver).newInstance(); 76: con = DriverManager.getConnection(url+db,userName,password); 77: String city=request.getParameter("city"); 78: String query = "select * from suppliers "; 79: if(city != null){ Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:95) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:457) org.apache.jasper.compiler.Compiler.compile(Compiler.java:367) org.apache.jasper.compiler.Compiler.compile(Compiler.java:345) org.apache.jasper.compiler.Compiler.compile(Compiler.java:332) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:594) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:342) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:391) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334) javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
note The full stack trace of the root cause is available in the Apache Tomcat/7.0.8 logs.