tomcat:報如下錯誤
ERROR [http-8080-Processor16] (Compiler.java:385) - Javac exception
Compile failed; see the compiler error output for details.
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: "catch" 不帶有 "try"
} catch (Throwable t) {
^
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: 需要 ')'
} catch (Throwable t) {
^
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: 不是語句
} catch (Throwable t) {
^
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1295: 需要 ';'
} catch (Throwable t) {
^
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1302: "finally" 不帶有 "try"
} finally {
^
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:49: "try" 不帶有 "catch" 或 "finally"
try {
^
D:\MyEclipse 10 by newpistomcat\work\Catalina\localhost\pis\org\apache\jsp\page\pipelineproject\projectweekreport\weekreportinsert1_jsp.java:1306: 進行文法解析時已到達檔案結尾
}
^
7 錯誤
---------------------------------------------------------------------
[color=red]解決方案:[/color]
[color=blue]1,actionforword 傳回retun null
2,jsp頁面少一個大括号(}),或者多一個大括号(})[/color]