小弟我刚刚接触jsp 按书上的调试 好像只要出现import **
就会提示Unable to compile class for JSP
希望指教一下
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: 4 in the jsp file: /test/date.jsp
Syntax error, insert ";" to complete LocalVariableDeclarationStatement
1:
3:
6: [tr]
7: [td]*当前日期[/td]
An error occurred at line: 8 in the jsp file: /test/date.jsp
Syntax error, insert ";" to complete Statement
5: SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd"); %>
6: [tr]
7: [td]*当前日期[/td]
8: [td][/td]
9: [/tr]
是不是Jdk的版本不合适啊Windows->Preferences->Java->CompilerWindows->Preferences->MyEclipse Enterprise Workbench->Servers->Tomcat->Tomcat 6.x->JDK ==================================================================An error occurred at line: 4 in the jsp fileinsert ";"