日期:2014-05-20  浏览次数:20933 次

求大神:jsp中错误
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 293 in the generated java file
Syntax error, insert "Finally" to complete TryStatement

An error occurred at line: 294 in the generated java file
Syntax error, insert "}" to complete ClassBody

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:349)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:326)
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)



------解决方案--------------------
An error occurred at line: 293 in the generated java file
Syntax error, insert "Finally" to complete TryStatement

An error occurred at line: 294 in the generated java file
Syntax error, insert "}" to complete ClassBody

tomcat说的很明白了
是finally不是Finally注意大小写
括号没括回来
------解决方案--------------------
贴相应的代码吧!你是不是写了finally
这些括号不匹配。。。
------解决方案--------------------
一楼正解~~~~~~~~
我的异常网推荐解决方案:org.apache.jasper.JasperException: Unable to compile class,http://www.myexception.cn/j2ee/2308.html