日期:2014-05-17  浏览次数:20777 次

tomcat 开发一个小留言板 看这是什么错误?
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:54: 非法字符: \12288
銆?銆?銆?String userName="root";
^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:54: 非法字符: \12288
銆?銆?銆?String userName="root";
 ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:54: 非法字符: \12288
銆?銆?銆?String userName="root";
  ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:59: 非法字符: \12288
銆?銆?銆?String username=request.getParameter("username"); 
^







An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
 ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
  ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:79: 非法字符: \12288
銆?銆?銆?銆?}
  ^


An error occurred at line: 7 in the jsp file: /notepadinsert.jsp
Generated servlet error:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\notepad\org\apache\jsp\notepadinsert_jsp.java:80: 需要 ';'

^
79 错误



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802

------解决方案--------------------
类不能编译,贴JSP页面代码
------解决方案--------------------
哥们 路径上有中文吧
------解决方案-