上网查了各种网站,还是没能解决,短短几行代码,就是在生成类的对象时,提示
HTTP Status 500 - Unable to compile class for JSP:
type Exception report
message Unable to compile class for JSP:
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: 11 in the jsp file: /NewFile.jsp
Person cannot be resolved to a type
以下代码:
An error occurred at line: 11 in the jsp file: /NewFile.jsp
Person cannot be resolved to a type
8: </head>
9: <body>
10: <%
11: Person person=new Person();
12: person.Display();
13: System.out.println("233");
14: %>
An error occurred at line: 11 in the jsp file: /NewFile.jsp
Person cannot be resolved to a type
8: </head>
9: <body>
10: <%
11: Person person=new Person();
12: person.Display();
13: System.out.println("233");
14: %>
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:460)
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:723)
求助各位大大
已经折腾俩小时了还没搞定